/* =========================================
   WPV LOGIN PAGE STYLES
   ========================================= */

.login-page-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  min-height: calc(100vh - var(--navbar-height, 68px));
  background: var(--page-bg);
  transition: background-color 0.3s ease;
}

.login-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

.login-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--soft-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] .login-card {
  background: var(--surface);
  border-color: var(--line-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 8px;
  letter-spacing: -0.8px;
}

.login-header p {
  font-size: 15px;
  color: var(--body-color);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-color);
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--heading-color);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

html[data-theme="dark"] .form-input {
  border-color: var(--line-color);
}

.form-input::placeholder {
  color: #a0aec0;
}

html[data-theme="dark"] .form-input::placeholder {
  color: #718096;
}

.form-input:focus {
  /* Slate-navy focus ring — obsidian tones */
  border-color: #1B3A4B;
  box-shadow: 0 0 0 4px rgba(27, 58, 75, 0.12);
}

.forgot-password-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  align-self: flex-end;
  transition: color 0.2s ease;
  margin-top: 4px;
  text-decoration: none;
}

.forgot-password-link:hover {
  text-decoration: underline;
  filter: brightness(0.9);
}

.login-btn {
  height: 52px;
  border-radius: 10px;
  border: none;
  /* Emerald — login is a key positive action */
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  margin-top: 10px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.40);
  filter: brightness(1.05);
}

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

.login-separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--body-color);
  font-size: 14px;
  margin: 24px 0;
}

.login-separator::before,
.login-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1.5px solid var(--border);
}

html[data-theme="dark"] .login-separator::before,
html[data-theme="dark"] .login-separator::after {
  border-bottom-color: var(--line-color);
}

.login-separator:not(:empty)::before {
  margin-right: 1em;
}

.login-separator:not(:empty)::after {
  margin-left: 1em;
}

.google-btn {
  height: 52px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface-solid);
  color: var(--heading-color);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.25s ease;
}

html[data-theme="dark"] .google-btn {
  border-color: var(--line-color);
  background: rgba(15, 29, 50, 0.4);
}

.google-btn:hover {
  background: var(--light-blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}

html[data-theme="dark"] .google-btn:hover {
  background: rgba(38, 103, 255, 0.1);
  border-color: var(--blue);
}

.google-icon {
  width: 20px;
  height: 20px;
}

/* Animations & Feedback States */
.shake-animation {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.message-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: none;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

.alert-error {
  background: #fdf2f2;
  color: #de350b;
  border: 1px solid #fde8e8;
}

html[data-theme="dark"] .alert-error {
  background: rgba(222, 53, 11, 0.15);
  color: #ff8f73;
  border-color: rgba(222, 53, 11, 0.25);
}

.alert-success {
  background: #f3faf7;
  color: #0fa261;
  border: 1px solid #def7ec;
}

html[data-theme="dark"] .alert-success {
  background: rgba(15, 162, 97, 0.15);
  color: #57d9a3;
  border-color: rgba(15, 162, 97, 0.25);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsive fixes */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
    border-radius: 16px;
  }
  
  .login-page-section {
    padding: 140px 0 60px;
  }
}

.signup-link {
  text-align: center;
  font-size: 14px;
  color: var(--body-color);
  margin-top: 24px;
}

.signup-link a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
  transition: color 0.2s ease;
}

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

