/* Layout de login (baseado em login.html + login.scss)
   Compensa o header fixo do site. */

main {
  padding-top: 86px;
}

.auth-page {
  --primary-green: #00a859;
  --primary-yellow: #fbb03b;
  --primary-red: #ed1c24;
  --primary-blue: #00aeef;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --bg-light: #f8f9fa;

  min-height: calc(100vh - 86px);
  background-color: var(--bg-light);
  background-image: linear-gradient(135deg, rgba(251, 176, 59, 0.05) 0%, rgba(0, 168, 89, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.auth-page .login-container {
  background-color: var(--white);
  width: 100%;
  max-width: 450px;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.auth-page .login-header {
  margin-bottom: 30px;
}

.auth-page .login-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 10px;
  position: relative;
  display: inline-block;
}

.auth-page .login-header h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background-color: var(--primary-yellow);
  border-radius: 2px;
}

.auth-page .login-header p {
  color: var(--text-light);
  font-size: 14px;
  margin: 15px 0 0;
}

.auth-page .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.auth-page .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.auth-page .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.auth-page .form-group input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.1);
}

.auth-page .password-input-wrap {
  position: relative;
}

.auth-page .password-input-wrap input {
  padding-right: 46px;
}

.auth-page .password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #999;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  border-radius: 4px;
  font-size: 15px;
  transition: color 0.2s ease;
}

.auth-page .password-toggle:hover {
  color: var(--primary-green);
}

.auth-page .password-toggle:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

.auth-page .forgot-password {
  display: block;
  text-align: right;
  font-size: 13px;
  color: #00aeef;
  text-decoration: none;
  margin-top: -10px;
  margin-bottom: 25px;
  font-weight: 500;
}

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

.auth-page .btn-login {
  width: 100%;
  padding: 16px;
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  margin-bottom: 20px;
}

.auth-page .btn-login:hover {
  background-color: #008d4a;
  transform: translateY(-2px);
}

.auth-page .btn-login:active {
  transform: translateY(0);
}

.auth-page .auth-alert {
  text-align: left;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.auth-page .auth-alert-error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c2c0;
}

.auth-page .auth-alert-success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.auth-page .signup-link {
  font-size: 14px;
  color: #666666;
}

.auth-page .signup-link a {
  color: #00a859;
  text-decoration: none;
  font-weight: 700;
}

.auth-page .signup-link a:hover {
  text-decoration: underline;
}

.auth-page .student-area {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: var(--text-light);
}

.auth-page .student-area a {
  color: #00aeef;
  text-decoration: none;
  font-weight: 600;
}

.auth-page .account-actions {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.auth-page .account-actions a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #eee;
  color: var(--text-dark);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.auth-page .account-actions a:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.auth-page .account-actions a.is-primary {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #fff;
}

.auth-page .account-actions a.is-primary:hover {
  background: #008d4a;
  color: #fff;
}

.auth-page .account-actions a.is-danger:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

@media (max-width: 480px) {
  main {
    padding-top: 72px;
  }

  .auth-page {
    min-height: calc(100vh - 72px);
    padding: 24px 16px;
  }

  .auth-page .login-container {
    padding: 24px 16px;
  }
}
