/* ESTREA Login Theme - Dark Green with University Branding */
:root {
  --primary-color: #2d5016;
  --primary-hover: #1f3a0f;
  --secondary-color: #3d6b1f;
  --background-dark: #ffffff;
  --error-color: #dc2626;
  --success-color: #34d399;
  --text-primary: #000000;
  --text-secondary: #000000;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Changed font to Inter with semibold weight */
  font-family: "Inter", sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 600;
}

.university-header {
  background: white;
  padding: 2rem 2rem 1.5rem 2rem;
  text-align: center;
  box-shadow: none;
  border-bottom: none;
}

/* Removed blue border from header box */
.header-box {
  border: none;
  padding: 1.5rem 2rem;
  display: inline-block;
  border-radius: 4px;
}

.university-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.5px;
}

.university-header h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Rebuilt grid to use proper two-column centered layout matching reference design */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8rem;
  flex: 1;
  padding: 3rem 2rem 1rem 2rem;
  /* reduced top and bottom padding to prevent content cutoff */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.login-left {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #ffffff;
  animation: slideInLeft 0.8s ease;
}

.logo-container {
  position: relative;
}

.logo-image {
  max-width: 280px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  animation: scaleIn 0.8s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.login-right {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 auto;
  background: #ffffff;
  animation: slideInRight 0.8s ease;
}

.form-container {
  width: 100%;
  max-width: 380px;
}

/* Fixed form title to be bold (700) */
.form-title {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

/* Improved form subtitle styling - regular weight, not bold */
.form-subtitle {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.form-label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: lowercase;
}

.form-control {
  border: 1px solid #000000;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
  font-weight: 600;
}

/* Make placeholder text black instead of gray */
.form-control::placeholder {
  color: #9ca3af;
  font-weight: 600;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
  outline: none;
}

.btn-primary {
  background: #c8c8c8;
  border: none;
  border-radius: 6px;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.btn-primary:hover {
  background: #b8b8b8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Added signup button styling */
.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--text-primary);
  background: white;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.875rem 1.5rem;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-outline-secondary {
  border-color: var(--border-color);
  color: var(--text-secondary);
  background: white;
}

.btn-outline-secondary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border: none;
  background: none;
  padding: 0;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Fixed forgot password link styling */
.forgot-password-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  font-weight: 400;
}

.forgot-password-link:hover {
  color: var(--text-primary);
}

.alert {
  border: none;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border-left-color: var(--error-color);
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border-left-color: var(--success-color);
}

.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-weight: 700;
  color: var(--text-primary);
}

hr {
  border-top: 1px solid var(--border-color);
}

/* Fixed terms text styling - regular weight with bold links */
.terms-text {
  font-size: 0.8rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

.terms-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.terms-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.text-center a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.text-center a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1024px) {
  .login-wrapper {
    gap: 4rem;
    padding: 3rem 2rem 2rem 2rem;
  }

  .logo-image {
    max-width: 240px;
  }

  .form-container {
    max-width: 340px;
  }
}

@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .login-left {
    width: 100%;
  }

  .login-right {
    width: 100%;
  }

  .university-header {
    padding: 1.5rem 1rem;
  }

  .university-header h1 {
    font-size: 1.4rem;
  }

  .university-header h2 {
    font-size: 0.9rem;
  }

  .logo-image {
    max-width: 200px;
  }

  .form-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .login-wrapper {
    padding: 1.5rem 1rem;
  }

  .university-header {
    padding: 1.5rem 1rem;
  }

  .university-header h1 {
    font-size: 1.1rem;
  }

  .university-header h2 {
    font-size: 0.8rem;
  }

  .logo-image {
    max-width: 160px;
  }

  .form-container {
    max-width: 100%;
  }

  .form-title {
    font-size: 1.1rem;
  }

  .terms-text {
    font-size: 0.75rem;
  }
}

.text-primary {
  color: var(--primary-color) !important;
}

.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Fixed signup link styling */
.signup-text {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 400;
}

.signup-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.signup-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}
