/* Authentication Pages Redesign - Centralized Styles */

:root {
  --auth-primary: #0d6efd;
  --auth-secondary: #6c757d;
  --auth-success-bg: #d1e7dd;
  --auth-success-text: #0f5132;
  --auth-success-border: #badbcc;
  --auth-error-bg: #f8d7da;
  --auth-error-text: #842029;
  --auth-error-border: #f5c2c7;
  --auth-card-radius: 1.25rem;
  --auth-input-radius: 0.625rem;
}

body.auth-page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* Base Layout */
.auth-split-container {
  min-height: 100vh;
  display: flex;
}

.auth-image-side {
  background-size: cover;
  background-position: center;
  position: relative;
}

.auth-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.8), rgba(111, 66, 193, 0.7));
}

.auth-form-side {
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Cards */
.auth-card {
  background: white;
  border: none;
  border-radius: var(--auth-card-radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
}

/* Typography */
.auth-title {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: #64748b;
  margin-bottom: 2rem;
}

/* Form Elements */
.auth-input-group {
  margin-bottom: 1.5rem;
}

.auth-label {
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.5rem;
}

.auth-input {
  border-radius: var(--auth-input-radius) !important;
  border: 1px solid #e2e8f0 !important;
  padding: 0.75rem 1rem !important;
}

.auth-input:focus {
  border-color: var(--auth-primary) !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1) !important;
}

.auth-btn-primary {
  background-color: var(--auth-primary);
  border: none;
  border-radius: var(--auth-input-radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s;
}

.auth-btn-primary:hover {
  background-color: #0b5ed7;
  transform: translateY(-1px);
}

/* Status Alerts */
.auth-status-alert {
  background-color: var(--auth-success-bg);
  color: var(--auth-success-text);
  border: 1px solid var(--auth-success-border);
  padding: 1rem;
  border-radius: var(--auth-input-radius);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Login Backgrounds (Replacement for CDNs) */
.bg-medical-1 {
  background-color: #e0f2fe;
  background-image: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.bg-medical-2 {
  background-color: #f0f9ff;
  background-image: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Login Specifics */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  background-color: #f8f9fa;
}

.login-aside {
  flex: 1.2;
  background-color: #004c99;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 5rem;
  color: white;
  position: relative;
}

@media (min-width: 992px) {
  .login-aside {
    display: flex;
  }
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #ffffff;
}

.login-card {
  width: 100%;
  max-width: 450px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-logo {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.5px;
  color: inherit;
  text-decoration: none;
}

.login-aside .brand-logo {
  color: white;
}

.welcome-text {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.welcome-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

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

.divider:not(:empty)::before {
  margin-right: .75em;
}

.divider:not(:empty)::after {
  margin-left: .75em;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  padding: 0.7rem;
  color: #475569;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  background: white;
  font-size: 0.95rem;
}

.social-btn:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

/* Modal Support */
.modal-content {
  border-radius: var(--auth-card-radius);
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 1.5rem 2rem;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  border-top: 1px solid #f1f5f9;
  padding: 1.5rem 2rem;
}