/* ========================================
   Modern Login Page Styles - 2025
   ======================================== */

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-gradient-start: #6366f1;
  --bg-gradient-end: #8b5cf6;
  --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  --card-shadow-hover: 0 25px 80px rgba(0, 0, 0, 0.25);
}

/* ========================================
   Body & Background
   ======================================== */

.auth-body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

.auth-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  z-index: -1;
}

/* Floating Shapes - Removed */

/* ========================================
   Container
   ======================================== */

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 20px;
}

/* ========================================
   Login Card
   ======================================== */

.login-card {
  background: white;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Card Header */
.login-card-header {
  /* background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  ); */
  padding: 2.5rem 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card-header .title {
  color: #073059;
}

.login-card-header .logo {
  position: relative;
  z-index: 1;
}

.login-card-header .logo i {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1rem;
  display: block;
}

.login-card-header h2 {
  color: white;
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.login-card-header p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* Card Body */
.login-card-body {
  padding: 2.5rem 2rem;
}

/* ========================================
   Form Elements
   ======================================== */

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #073059; /* var(--text-primary); */
  font-weight: 600;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background-color: #f9fafb;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
  color: #183a5c; /* #9ca3af; */
}

/* Email Input with Icon */
.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.input-with-icon .form-control {
  padding-left: 2.75rem;
}

/* Verification Code Input */
.code-input {
  text-align: center;
  letter-spacing: 1rem;
  font-size: 2rem !important;
  font-weight: 700;
  padding: 1rem !important;
  font-family: "Courier New", monospace;
}

/* Help Text */
.form-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #073059; /* var(--text-secondary); */
}

.form-text i {
  margin-right: 0.25rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-link {
  background: transparent;
  color: var(--primary-color);
  box-shadow: none;
  font-weight: 500;
  text-decoration: none;
}

.btn-link:hover {
  background: rgba(99, 102, 241, 0.05);
  text-decoration: none;
  color: var(--primary-dark);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ========================================
   Alerts
   ======================================== */

.alert-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-modern i {
  font-size: 1.25rem;
}

.alert-modern span {
  flex: 1;
  font-weight: 500;
}

.alert-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: inherit;
  opacity: 0.7;
}

.alert-close:hover {
  opacity: 1;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* ========================================
   Info Box
   ======================================== */

.info-box {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.info-box p {
  margin: 0;
  color: #1e40af;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-box strong {
  font-weight: 700;
  color: #1e3a8a;
}

/* ========================================
   Footer
   ======================================== */

.auth-footer {
  text-align: center;
  margin-top: 2rem;
}

.auth-footer p {
  color: #183a5c; /* #6b7280; */
  font-size: 0.875rem;
  margin: 0;
}

/* ========================================
   Debug Info
   ======================================== */

.debug-info {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.debug-info strong {
  color: #92400e;
  font-weight: 700;
}

.debug-info pre {
  background: white;
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  overflow-x: auto;
  font-size: 0.75rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 576px) {
  .auth-container {
    padding: 15px;
  }

  .login-card-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .login-card-header .logo i {
    font-size: 2.5rem;
  }

  .login-card-header h2 {
    font-size: 1.5rem;
  }

  .login-card-body {
    padding: 2rem 1.5rem;
  }

  .code-input {
    font-size: 1.5rem !important;
    letter-spacing: 0.5rem;
  }

  .btn {
    padding: 0.875rem 1.25rem;
  }
}

/* ========================================
   Smooth Transitions - Removed
   ======================================== */

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}
