/* ============================================================
   login.css — HSCOL Login Page Styles
   ============================================================ */

/* ── Page Layout ── */
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 5%;
  background: #ffffff;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  gap: 60px;
  align-items: center;
}

/* ── Hero Image Panel ── */
.hero-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* ── Login Card ── */
.login-card {
  flex: 0 0 400px;
  background: var(--white);
  padding: 20px;
}

.login-card h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  color: var(--gold, #BE852B);
  margin-bottom: 32px;
  text-align: center;
  font-weight: 700;
}

/* ── Form Groups ── */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #333);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius, 8px);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text, #333);
  outline: none;
  transition: border-color .2s;
  background: #ffffff;
}

.form-group input:focus {
  border-color: var(--gold, #BE852B);
}

.form-group input::placeholder {
  color: #aaa;
}

/* ── Password Row with Toggle ── */
.password-row {
  display: flex;
  align-items: center;
  position: relative;
}

.password-row input {
  padding-right: 42px;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color .2s;
}

.toggle-pw:hover {
  color: var(--gold, #BE852B);
}

/* ── Forgot Password ── */
.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.forgot-row a {
  font-size: 11px;
  color: #2196F3;
  text-decoration: underline;
}

.forgot-row a:hover {
  color: #0d47a1;
}

/* ── Submit Button ── */
.btn-submit {
  width: 140px;
  display: block;
  margin: 0 auto;
  background: var(--gold, #BE852B);
  color: white;
  border: none;
  border-radius: var(--radius, 8px);
  padding: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background .2s, transform .1s;
}

.btn-submit:hover {
  background: var(--gold-hover, #A06D1E);
}

.btn-submit:active {
  transform: scale(.98);
}

/* ── Social Buttons ── */
.social-buttons {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--text, #333);
  border-radius: 30px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  background: white;
  cursor: pointer;
  color: var(--text, #333);
  transition: border-color .2s;
}

.btn-social:hover {
  border-color: var(--gold, #BE852B);
}

.btn-social svg {
  flex-shrink: 0;
}

/* ── Register Link ── */
.register-row {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #666;
}

.register-row a {
  color: #2196F3;
  text-decoration: underline;
  font-weight: 500;
}

.register-row a:hover {
  color: #0d47a1;
}

/* ── Alert ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius, 8px);
  font-size: 13px;
  margin-bottom: 20px;
}

.alert-error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
    gap: 40px;
  }

  .login-card {
    flex: auto;
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 540px) {
  .social-buttons {
    flex-direction: column;
  }
}