/* PeopleGrove Login Page Styles - Based on Original Reference */

:root {
  --pg-navy: #0f3b57;
  --pg-blue: #1499e9;
  --pg-orange: #f58120;
  --transition: all 0.2s ease;
}

/* Reset and Base Styles */
*, *:before, *:after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.2;
}

* {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  color: #1a2b3c;
  background: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  transition: var(--transition);
  text-decoration: none;
}

img {
  border-style: none;
  height: auto;
  max-width: 100%;
}

/* Header Styles */
.site-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
  border-bottom: 1px solid #eef2f5;
  box-shadow: 0 1px 24px rgba(88, 88, 88, 0.12);
}

.nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
}

.login-button {
  background: white;
  color: #1a2b3c;
  border: 1px solid #1a2b3c;
  padding: 12px 24px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 16px;
}

.login-button:hover {
  background: #1a2b3c;
  color: white;
  text-decoration: none;
}

.brand img { 
  height: 45px; 
  width: auto; 
  display: block; 
  margin: 20px 0;
}

/* Bootstrap-like Grid System */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1440px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.col-lg-3 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  flex: 0 0 25%;
  max-width: 25%;
}
.col-lg-3:first-child {
  padding-left: 0;
}
.col-lg-3:last-child {
  padding-right: 0;
}

/* Core Login Section Styles - Exact from Reference */
.core-logins-section {
  padding: 60px 0;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.logintoprow {
  justify-content: center;
  margin: 0 -15px;
}

.loginsElms {
  border-radius: 32px 0 0 0;
  padding: 70px 40px 60px;
  min-height: 335px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.loginbody {
  position: relative;
  /* height: 200px; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.loginbody h3 {
  align-items: center;
  bottom: 0;
  display: flex;
  font-size: 26px;
  font-weight: 500;
  justify-content: center;
  left: 0;
  line-height: 130%;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
}

.loginbody img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.loginbtn a {
  background: #f68925;
  color: #fff;
  display: block;
  height: 44px;
  margin: 50px auto 0;
  padding: 10px 20px 10px 21px;
  text-align: center;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.loginbtn a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.loginbtn a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  filter: brightness(1.1);
}

.loginbtn a:hover::before {
  left: 100%;
}

.loginbtn a:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.loginbtn.compmsbtn a {
  background: #0b4064;
}

.loginbtn.mycredbtn a {
  background: #19a0db;
}

.loginbtn.readiness a {
  background: #5384ab;
}

a:hover {
  text-decoration: none;
}

/* Footer Styles */
footer { 
  margin-top: auto; 
  border-top: 1px solid #eef2f5; 
  background: white; 
  font-size: 12px; 
}

.footer-inner { 
  max-width: 1440px; 
  margin: 0 auto; 
  padding: 18px 24px; 
  display: flex; 
  gap: 16px; 
  align-items: center; 
  justify-content: space-between; 
  color: #5a6b7b; 
}

.footer-links { 
  display: flex; 
  gap: 16px; 
}

.footer-links a { 
  color: #5a6b7b; 
  text-decoration: none; 
  transition: var(--transition);
}

.footer-links a:hover { 
  color: #1a2b3c; 
  text-decoration: underline; 
}

/* Responsive Design - Exact from Reference */
/* @media (max-width: 1199px) {
  .core-logins-section .col-lg-3.col-xs-6:nth-child(3),
  .core-logins-section .col-lg-3.col-xs-6:nth-child(4) {
    margin-top: 30px;
  }
} */

@media (max-width: 991.98px) {
  .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-lg-3:nth-child(1),
  .col-lg-3:nth-child(3) {
    padding-left: 15px;
  }
  
  .col-lg-3:nth-child(2),
  .col-lg-3:nth-child(4) {
    padding-right: 15px;
  }
  
  .col-lg-3:nth-child(3),
  .col-lg-3:nth-child(4) {
    margin-top: 30px;
  }
  
  .core-logins-section {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 575px) {
  .core-logins-section {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  .core-logins-section .row.logintoprow {
    display: flex;
    flex-wrap: wrap;
  }
  
  .core-logins-section .row.logintoprow .col-lg-3 {
    margin-bottom: 20px;
    width: 50%;
  }
  
  .col-lg-3:nth-child(1),
  .col-lg-3:nth-child(3) {
    padding-left: 0;
  }
  
  .col-lg-3:nth-child(2),
  .col-lg-3:nth-child(4) {
    padding-right: 0;
  }
  
  .col-lg-3:nth-child(3),
  .col-lg-3:nth-child(4) {
    margin-top: 0;
  }
  
  .loginsElms {
    padding: 20px;
  }
  
  .loginbtn a {
    height: auto;
    margin: 31px auto 29px;
    padding: 6px 20px 6px 21px;
    width: auto;
  }
  
  .loginbody h3 {
    font-size: 18px;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 12px 16px;
  }
}

/* Login Page Styles - Clean Minimalist Design */
.login-section {
  padding: 60px 0;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-form-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  background: transparent;
  padding: 0;
}

.login-header {
  text-align: left;
  margin-bottom: 40px;
  width: 100%;
}

.login-logo {
  display: none; /* Hide the logo as shown in reference */
}

.login-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin: 0;
  letter-spacing: -0.5px;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.label {
  display: none; /* Hide labels as shown in reference */
}

.input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #2c5aa0;
  border-radius: 0;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  background: white;
}

.input:focus {
  outline: none;
  border-color: #2c5aa0;
}

.input::placeholder {
  color: #999;
  font-size: 16px;
}

.pwline {
  position: relative;
}

.form-actions {
  margin-top: 30px;
}

.button.is-primary {
  width: 100%;
  background: #2c5aa0;
  color: white;
  border: none;
  padding: 16px 20px;
  border-radius: 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button.is-primary:hover {
  background: #1e3f73;
}

.forgot-password {
  text-align: center;
  margin-top: 20px;
}

.forgot-password a {
  color: #2c5aa0;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.error {
  margin-bottom: 20px;
  border-radius: 0;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px 20px;
  border-radius: 4px;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 25px;
  font-weight: 400;
}

.error-message a {
  color: #721c24;
  text-decoration: underline;
}

.error-message a:hover {
  color: #491217;
}

/* Responsive Login Styles */
@media (max-width: 575px) {
  .login-section {
    padding: 40px 20px;
  }
  
  .login-form-container {
    max-width: 100%;
  }
  
  .login-header h2 {
    font-size: 28px;
  }
  
  .input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
