/* =========================   ADMIN LOGIN PAGE STYLES========================= */

/* Override theme.css for admin login */

.admin-login-page {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0b2d4d 0%, #123f6b 50%, #1a4a7a 100%);
  color: #333;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login Container */

.login-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  min-height: 700px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 100px rgba(0, 0, 0, 0.3);
  margin: 20px;
  position: relative;
  z-index: 10;
}

/* Left Side - Brand & Info */

.login-left {
  flex: 1;
  background: linear-gradient(135deg, #0b2d4d 0%, #1a4a7a 100%);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.login-brand {
  text-align: center;
  margin-bottom: 3rem;
}

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

.logo-admin {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
}

.brand-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.brand-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
  font-weight: 300;
}

.login-info {
  flex: 1;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.info-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background: #b8923b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.info-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-content p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

.login-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text, .footer-contact {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.footer-text i, .footer-contact i {
  opacity: 0.8;
  font-size: 1rem;
}

.footer-contact {
  margin-bottom: 0;
}

/* Right Side - Login Form */

.login-right {
  flex: 1.2;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.login-form-container {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0b2d4d;
  margin-bottom: 0.75rem;
}

.login-subtitle {
  font-size: 1.05rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Form Styles */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #0b2d4d;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.input-group {
  position: relative;
}

.login-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e1e5eb;
  border-radius: 12px;
  font-size: 1rem;
  color: #333;
  background: #ffffff;
  transition: all 0.3s ease;
}

.login-input:focus {
  border-color: #b8923b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 146, 59, 0.15);
}

.input-group-text {
  background: #ffffff;
  border: 2px solid #e1e5eb;
  border-left: none;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-group-text:hover {
  background: #f5f7fa;
  color: #0b2d4d;
}

.form-error {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

/* Form Options */

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  border: 2px solid #e1e5eb;
}

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

.form-check-label {
  font-size: 0.95rem;
  color: #6b7280;
  cursor: pointer;
}

.forgot-password {
  font-size: 0.95rem;
  color: #b8923b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #0b2d4d;
  text-decoration: underline;
}

/* Login Button */

.btn-login {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #b8923b 0%, #d4b15c 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.btn-login:hover:not(:disabled) {
  background: linear-gradient(135deg, #0b2d4d 0%, #1a4a7a 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(11, 45, 77, 0.2);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.security-info {
  text-align: center;
  padding: 1rem;
  background: #f9fafc;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.security-info p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.security-info i {
  color: #b8923b;
}

/* Login Status */

.login-status {
  margin-bottom: 1.5rem;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

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

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

.alert i {
  font-size: 1.2rem;
  margin-right: 0.75rem;
}

/* Session Info */

.session-info {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e5eb;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.session-item i {
  color: #b8923b;
  font-size: 1rem;
}

#activeAdmins {
  font-weight: 600;
  color: #0b2d4d;
}

/* Two-Factor Authentication */

.two-factor-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: slideIn 0.3s ease;
}

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

.two-factor-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.two-factor-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0b2d4d;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.two-factor-header p {
  font-size: 1.05rem;
  color: #6b7280;
  margin: 0;
}

.code-inputs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.code-input {
  width: 55px;
  height: 55px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid #e1e5eb;
  border-radius: 12px;
  color: #0b2d4d;
  background: #ffffff;
  transition: all 0.3s ease;
}

.code-input:focus {
  border-color: #b8923b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 146, 59, 0.15);
}

.code-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.btn-verify, .btn-resend {
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.btn-verify {
  background: #b8923b;
  color: #ffffff;
}

.btn-verify:hover {
  background: #0b2d4d;
  transform: translateY(-2px);
}

.btn-resend {
  background: #ffffff;
  color: #0b2d4d;
  border: 2px solid #e1e5eb;
}

.btn-resend:hover {
  background: #f5f7fa;
  border-color: #b8923b;
  color: #b8923b;
}

.code-timer {
  text-align: center;
  font-size: 0.95rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.code-timer i {
  color: #b8923b;
}

#timer {
  font-weight: 600;
  color: #0b2d4d;
}

/* Background Elements */

.login-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(184, 146, 59, 0.1);
}

.bg-shape-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  left: -200px;
}

.bg-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  right: -150px;
  background: rgba(11, 45, 77, 0.1);
}

.bg-shape-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: 10%;
  background: rgba(26, 74, 122, 0.1);
}

/* =========================   RESPONSIVE DESIGN========================= */

@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
    max-width: 600px;
    min-height: auto;
  }
}

@media (max-width: 992px) {
  .login-left {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 992px) {
  .login-right {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 992px) {
  .info-card {
    padding: 1.25rem;
  }
}

@media (max-width: 992px) {
  .bg-shape {
    display: none;
  }
}

@media (max-width: 576px) {
  .login-container {
    margin: 10px;
    border-radius: 16px;
  }
}

@media (max-width: 576px) {
  .login-left, .login-right {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .brand-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .login-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .info-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .info-icon {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .code-inputs {
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .code-input {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .code-actions {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .btn-verify, .btn-resend {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .session-info {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

