/* Login Page Styles - 2 Column Layout */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

.login-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Left Column - Branding */
.branding-section {
  flex: 1;
  background: linear-gradient(135deg, #032442 0%, #054381 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.branding-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.branding-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 500px;
}

.brand-logo {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.brand-logo i {
  background: rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.brand-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.brand-features {
  list-style: none;
  text-align: left;
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.brand-features li {
  padding: 0.75rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.brand-features li i {
  margin-right: 1rem;
  font-size: 1.2rem;
  color: #4dd0e1;
}

/* Right Column - Login Form */
.login-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  background: #f8f9fa;
  position: relative;
}

.login-container {
  width: 100%;
  max-width: 37rem;
  animation: fadeInRight 0.8s ease-out;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  color: #003366;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #6c757d;
  font-size: 1rem;
}

.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  border: none;
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  border-color: #003366;
  box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.15);
  outline: none;
}

.input-group-text {
  background: #003366;
  color: white;
  border: 2px solid #003366;
  border-radius: 10px 0 0 10px;
  padding: 0.75rem 1rem;
}

.input-group .btn-outline-secondary {
  border-left: none;
  border-color: #e9ecef;
  border-radius: 0 10px 10px 0;
}

.input-group .btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #e9ecef;
}

.btn-primary {
  background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
  background: linear-gradient(135deg, #004080 0%, #0073e6 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-check-input {
  border-radius: 5px;
  border: 2px solid #e9ecef;
}

.form-check-input:checked {
  background-color: #003366;
  border-color: #003366;
}

.form-check-label {
  color: #495057;
  font-size: 0.9rem;
}

.login-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.login-footer p {
  margin-bottom: 0.5rem;
}

.alert {
  border-radius: 10px;
  border: none;
  margin-bottom: 1.5rem;
}

.validation-summary-errors {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.text-danger.small {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .login-wrapper {
    flex-direction: column;
  }

  .branding-section {
    min-height: 40vh;
    padding: 2rem;
  }

  .brand-logo {
    font-size: 3rem;
  }

  .brand-logo img {
    height: 80px !important;
  }

  .brand-title {
    font-size: 2rem;
  }

  .brand-subtitle {
    font-size: 1rem;
  }

  .brand-features {
    display: none;
  }

  .login-section {
    min-height: 60vh;
    padding: 2rem 1.5rem;
  }

  .login-container {
    max-width: 100%;
  }

  .login-card {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .branding-section {
    min-height: 30vh;
    padding: 1.5rem;
  }

  .brand-logo {
    font-size: 2.5rem;
  }

  .brand-logo img {
    height: 60px !important;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .login-section {
    padding: 1.5rem 1rem;
  }

  .login-card {
    padding: 1.5rem;
  }

  .login-header h2 {
    font-size: 1.5rem;
  }
}
