/* Authentication Styles */
:root {
  --primary-dark: #1B1464;  /* Dark blue from logo */
  --accent: #786D3C;  /* Gold accent from logo */
  --primary-light: #e8e6f2;  /* Light version of primary */
  --accent-light: #f2f0e8;  /* Light version of accent */
  --text-dark: #e0e0e0;
  --text-light: #ffffff;
}

body {
  background-color: #f5f5f8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem 1rem;
}

.auth-form-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(27, 20, 100, 0.15);
  padding: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-top: 5px solid var(--primary-dark);
  transition: all 0.3s ease;
  max-width: 500px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.auth-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: var(--accent-light);
  opacity: 0.2;
  border-radius: 0 0 0 100%;
  z-index: 0;
}

.auth-form-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: var(--primary-light);
  opacity: 0.2;
  border-radius: 0 100% 0 0;
  z-index: 0;
}

.auth-form-content {
  position: relative;
  z-index: 1;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.auth-logo span:first-child {
  color: var(--primary-dark);
}

.auth-logo span:last-child {
  color: var(--accent);
}

.auth-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.form-floating {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-floating label {
  padding-left: 1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.form-floating .form-control {
  height: 60px;
  padding: 1rem 1rem;
  border-radius: 8px;
  border: 1.5px solid #ddd;
  transition: all 0.3s ease;
  font-size: 1rem;
  background-color: #f9f9f9;
}

.form-floating .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(120, 109, 60, 0.25);
  background-color: white;
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Auth Button Styles */
.auth-btn, .btn-primary {
  width: 100%;
  height: 52px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.auth-btn:hover, .btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(120, 109, 60, 0.3);
}

/* Login button specific styles */
.login-btn {
  background-color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
  color: white;
}

.login-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Register button specific styles */
.register-btn {
  background-color: var(--accent);
  border: 2px solid var(--accent);
  color: white;
}

.register-btn:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  color: #666;
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.auth-footer a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.auth-footer a:hover {
  color: var(--primary-dark);
}

.auth-footer a:hover::after {
  width: 100%;
}

/* Form check styles */
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-label {
  color: #555;
  font-size: 0.95rem;
}

/* Alert styles */
.alert {
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
}

.alert-success {
  background-color: rgba(25, 135, 84, 0.1);
  color: #198754;
}

.alert-success::before {
  background-color: #198754;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.alert-danger::before {
  background-color: #dc3545;
}

.alert-info {
  background-color: rgba(27, 20, 100, 0.1);
  color: var(--primary-dark);
}

.alert-info::before {
  background-color: var(--primary-dark);
}

.alert-warning {
  background-color: rgba(120, 109, 60, 0.1);
  color: var(--accent);
}

.alert-warning::before {
  background-color: var(--accent);
}

.alert-dismissible .btn-close {
  padding: 1.25rem;
}

/* Social Login Styles */
.social-login-section {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: #999;
  margin: 1.5rem 0;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.separator::before {
  margin-right: 1rem;
}

.separator::after {
  margin-left: 1rem;
}

.separator-text {
  font-size: 0.9rem;
  color: #777;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
  color: #555;
  background-color: white;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.google {
  color: #DB4437;
  border-color: #DB4437;
}

.social-btn.google:hover {
  background-color: #DB4437;
  color: white;
}

.social-btn.facebook {
  color: #4267B2;
  border-color: #4267B2;
}

.social-btn.facebook:hover {
  background-color: #4267B2;
  color: white;
}

.social-btn.apple {
  color: #000;
  border-color: #000;
}

.social-btn.apple:hover {
  background-color: #000;
  color: white;
}

.social-btn.microsoft {
  color: #00A4EF;
  border-color: #00A4EF;
}

.social-btn.microsoft:hover {
  background-color: #00A4EF;
  color: white;
}

/* OTP Verification Styles */
.otp-input-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.otp-input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.otp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(120, 109, 60, 0.25);
  background-color: white;
}

/* Password Strength Meter */
.password-strength-meter {
  margin-top: 0.5rem;
  height: 5px;
  background-color: #eee;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.password-strength-meter-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  text-align: right;
}

/* Weak password */
.strength-weak .password-strength-meter-bar {
  background-color: #dc3545;
  width: 25%;
}

/* Medium password */
.strength-medium .password-strength-meter-bar {
  background-color: #ffc107;
  width: 50%;
}

/* Strong password */
.strength-strong .password-strength-meter-bar {
  background-color: #198754;
  width: 75%;
}

/* Very strong password */
.strength-very-strong .password-strength-meter-bar {
  background-color: #198754;
  width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
  .auth-form-container {
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  
  .auth-logo {
    font-size: 1.8rem;
  }
  
  .auth-subtitle {
    font-size: 1rem;
  }
  
  .form-floating .form-control {
    height: 55px;
  }
  
  .social-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .otp-input {
    width: 40px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* Login and Register Background Styles */
.login-bg, .register-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-dark);
  z-index: -1;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0.6;
}

/* Animation for particles */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) rotate(360deg);
    opacity: 0.6;
  }
}

/* Modal styles */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(27, 20, 100, 0.15);
}

.modal-header {
  border-bottom: 2px solid var(--accent-light);
  padding: 1.5rem;
}

.modal-title {
  color: var(--primary-dark);
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 2px solid var(--accent-light);
  padding: 1.5rem;
}

/* Custom checkbox styles */
.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 0.25rem;
  cursor: pointer;
}

.form-check-label a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.form-check-label a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Login page background and animation */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #1B1464;
    z-index: -1;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #786D3C;
    opacity: 0.5;
    animation: float 10s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.5;
    }
}

.particle:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 2s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: 6s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 8s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 40%;
    animation-delay: 1s;
}

.particle:nth-child(6) {
    top: 50%;
    left: 60%;
    animation-delay: 3s;
}

/* Form control styles */
.form-control:focus {
    border-color: #786D3C;
    box-shadow: 0 0 0 0.25rem rgba(120, 109, 60, 0.25);
}

.form-check-input:checked {
    background-color: #786D3C;
    border-color: #786D3C;
}

/* Login container positioning */
.login-container {
    min-height: calc(100vh - 75px);
    padding-top: 100px;
    padding-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-container {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    padding: 3rem;
    border-top: 5px solid var(--primary-dark);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    margin-bottom: 1.5rem;
}

/* Modal styling improvements */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease;
    transform: translate(0, -50px);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: none;
    opacity: 1;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-backdrop.show {
    opacity: 0.7;
}

.modal-header {
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    background-color: white;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.modal .btn-primary {
    background-color: #1B1464;
    border-color: #1B1464;
    color: white;
}

.modal .btn-primary:hover {
    background-color: #786D3C;
    border-color: #786D3C;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(120, 109, 60, 0.2);
    color: white;
}

/* Login footer */
.login-footer {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(27, 20, 100, 0.9);
    color: white;
    position: relative;
    z-index: 10;
}
