/* ========================================
   MMS Auth - Modern Authentication Styles
   ======================================== */

/* Color Palette */
:root {
    --primary-gradient-start: #283164;
    --primary-gradient-end: #1f254d;
    --success-green: #4ade80;
    --warning-yellow: #fbbf24;
    --text-dark: #1a1a2e;
    --text-medium: #374151;
    --text-body: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(40, 49, 100, 0.1);
    --shadow-md: 0 4px 15px rgba(40, 49, 100, 0.2);
    --shadow-lg: 0 6px 20px rgba(40, 49, 100, 0.3);
}

/* Typography Improvements */
.title-login {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem !important;
}

.text-secondary {
    font-size: 0.875rem;
    color: var(--text-muted) !important;
    margin-bottom: 0.5rem !important;
}

/* Modern Form Controls */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-gradient-start) !important;
    box-shadow: 0 0 0 0.15rem rgba(40, 49, 100, 0.15) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Modern Buttons */
.btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient-start);
    border: none;
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-gradient-end);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    color: var(--text-body);
}

.btn-secondary:hover {
    background: var(--bg-lighter);
    border-color: var(--primary-gradient-start);
    color: var(--text-body);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

/* Modern Radio Buttons */
.form-check {
    padding: 8px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.form-check:hover {
    background: var(--bg-lighter);
    border-color: var(--primary-gradient-start);
}

.form-check-input:checked ~ .form-check-label {
    color: var(--text-dark);
}

.form-check-label {
    cursor: pointer;
    font-weight: 400;
    color: var(--text-body);
    margin-left: 8px;
    font-size: 0.875rem;
}

.form-check-label span {
    font-weight: 500;
}

/* Modern Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 10px 14px;
    margin-bottom: 0.5rem;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid var(--success-green);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid var(--warning-yellow);
}

.alert-info {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Info Box Styling */
.info-box {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow-md);
    color: white;
    margin-bottom: 0.5rem;
}

.info-box-icon {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-box-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.info-box-content {
    font-size: 0.8rem;
    line-height: 1.4;
    opacity: 0.95;
}

.info-bullet {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 6px;
}

.info-bullet-green {
    background: var(--success-green);
}

.info-bullet-yellow {
    background: var(--warning-yellow);
}

/* Links */
.link-style {
    color: var(--primary-gradient-start);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-style:hover {
    color: var(--primary-gradient-end);
    text-decoration: underline;
}

/* Icon Styling */
.fa, .fas, .far {
    color: var(--primary-gradient-start);
}

/* Validation Messages */
.text-danger {
    color: #dc2626 !important;
    font-size: 0.85rem;
    margin-top: 3px;
}

/* Small Text */
small.text-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modal Improvements */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
}

.modal-title {
    font-weight: 600;
    color: var(--text-dark);
}

/* Container Improvements */
.container {
    max-width: 480px;
}

/* Minimal padding for auth pages */
.col-12.p-xl-3,
.container.py-xl-3 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0 !important;
}

@media (min-width: 1200px) {
    .col-12.p-xl-3,
    .container.py-xl-3 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 0.75rem !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .btn {
        padding: 12px 18px;
        font-size: 1rem;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 1rem;
    }
}

/* Enhanced Option Dividers */
.custom-h6 {
    position: relative;
    text-align: center;
    margin: 10px 0 8px 0;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.custom-h6::before,
.custom-h6::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}

.custom-h6::before {
    left: 0;
}

.custom-h6::after {
    right: 0;
}

.custom-h6 span {
    background: white;
    padding: 0 8px;
    position: relative;
    z-index: 1;
}

/* Better visual separation for login options */
.login-option-group {
    margin-bottom: 8px;
}

.btn-secondary {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-body);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 49, 100, 0.05), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: var(--bg-lighter);
    border-color: var(--primary-gradient-start);
    color: var(--text-body);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 49, 100, 0.15);
}

/* Modern Attention Alert */
.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 8px;
    color: #78350f;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
    margin-bottom: 0.5rem;
}

.alert-warning i.fas.fa-bell {
    color: #f59e0b !important;
    font-size: 24px !important;
    margin-bottom: 4px;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.alert-warning b {
    font-weight: 600;
    color: #92400e;
    font-size: 0.95rem;
}

.alert-warning a {
    color: var(--primary-gradient-start);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.alert-warning a:hover {
    color: var(--primary-gradient-end);
}

/* Alert Mobile Specific */
.alert-mobile {
    font-size: 0.85rem;
    line-height: 1.4;
}

.alert-mobile br {
    margin-bottom: 2px;
}

/* Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-gradient-start);
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* External Provider Buttons */
.btn-secondary img {
    vertical-align: middle;
}

/* Phone Input Specific */
.iti {
    width: 100%;
}

.iti__selected-flag {
    border-radius: 8px 0 0 8px;
}

/* Popover Styling */
.popover {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popover-header {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
}

.popover-body {
    color: var(--text-body);
}

/* Checkbox Styling */
.big_checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-gradient-start);
}

/* Label Improvements */
label {
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 4px;
    font-size: 0.875rem;
}

/* Card-like Sections */
section {
    background: white;
    border-radius: 12px;
    padding: 0;
}

/* Spacing Utilities - Ultra Compact */
.mb-xl-3 {
    margin-bottom: 0.25rem !important;
}

.mb-xl-4 {
    margin-bottom: 0.35rem !important;
}

.mb-2 {
    margin-bottom: 0.25rem !important;
}

.mb-3 {
    margin-bottom: 0.35rem !important;
}

.mb-4 {
    margin-bottom: 0.5rem !important;
}

.mt-2 {
    margin-top: 0.25rem !important;
}

.mt-3 {
    margin-top: 0.35rem !important;
}

.py-2 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-3 {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

@media (min-width: 1200px) {
    .mb-xl-3 {
        margin-bottom: 0.35rem !important;
    }
    
    .mb-xl-4 {
        margin-bottom: 0.5rem !important;
    }
}

/* Font Weight Utilities */
.fw-semibold {
    font-weight: 500 !important;
}

.fw-500 {
    font-weight: 500 !important;
}


/* Modern Form Controls */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-gradient-start) !important;
    box-shadow: 0 0 0 0.15rem rgba(40, 49, 100, 0.15) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Modern Buttons */
.btn {
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient-start);
    border: none;
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-gradient-end);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    color: var(--text-body);
}

.btn-secondary:hover {
    background: var(--bg-lighter);
    border-color: var(--primary-gradient-start);
    color: var(--text-body);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

/* Modern Radio Buttons */
.form-check {
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.form-check:hover {
    background: var(--bg-lighter);
    border-color: var(--primary-gradient-start);
}

.form-check-input:checked ~ .form-check-label {
    color: var(--text-dark);
}

.form-check-label {
    cursor: pointer;
    font-weight: 400;
    color: var(--text-body);
    margin-left: 8px;
}

.form-check-label span {
    font-weight: 500;
}

/* Modern Alerts */
.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid var(--success-green);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid var(--warning-yellow);
}

.alert-info {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Info Box Styling */
.info-box {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-md);
    color: white;
}

.info-box-icon {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-box-title {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.info-box-content {
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.95;
}

.info-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.info-bullet-green {
    background: var(--success-green);
}

.info-bullet-yellow {
    background: var(--warning-yellow);
}

/* Links */
.link-style {
    color: var(--primary-gradient-start);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-style:hover {
    color: var(--primary-gradient-end);
    text-decoration: underline;
}

/* Icon Styling */
.fa, .fas, .far {
    color: var(--primary-gradient-start);
}

/* Validation Messages */
.text-danger {
    color: #dc2626 !important;
    font-size: 0.875rem;
    margin-top: 4px;
}

/* Small Text */
small.text-muted {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Modal Improvements */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
}

.modal-title {
    font-weight: 600;
    color: var(--text-dark);
}

/* Container Improvements */
.container {
    max-width: 480px;
}

/* Consistent padding for all auth pages */
.col-12.p-xl-3,
.container.py-xl-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

@media (min-width: 1200px) {
    .col-12.p-xl-3,
    .container.py-xl-3 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .form-control {
        padding: 14px 16px;
        font-size: 1rem;
    }
}

/* Enhanced Option Dividers */
.custom-h6 {
    position: relative;
    text-align: center;
    margin: 24px 0 20px 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.custom-h6::before,
.custom-h6::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 50%, transparent 100%);
}

.custom-h6::before {
    left: 0;
}

.custom-h6::after {
    right: 0;
}

.custom-h6 span {
    background: white;
    padding: 0 12px;
    position: relative;
    z-index: 1;
}

/* Better visual separation for login options */
.login-option-group {
    margin-bottom: 16px;
}

.btn-secondary {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-body);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 49, 100, 0.05), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: var(--bg-lighter);
    border-color: var(--primary-gradient-start);
    color: var(--text-body);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 49, 100, 0.15);
}

/* Modern Attention Alert */
.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    color: #78350f;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.alert-warning i.fas.fa-bell {
    color: #f59e0b !important;
    font-size: 32px !important;
    margin-bottom: 8px;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.alert-warning b {
    font-weight: 600;
    color: #92400e;
    font-size: 1.05rem;
}

.alert-warning a {
    color: var(--primary-gradient-start);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.alert-warning a:hover {
    color: var(--primary-gradient-end);
}

/* Alert Mobile Specific */
.alert-mobile {
    font-size: 0.9rem;
    line-height: 1.6;
}

.alert-mobile br {
    margin-bottom: 4px;
}

/* Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-gradient-start);
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* External Provider Buttons */
.btn-secondary img {
    vertical-align: middle;
}

/* Phone Input Specific */
.iti {
    width: 100%;
}

.iti__selected-flag {
    border-radius: 8px 0 0 8px;
}

/* Popover Styling */
.popover {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popover-header {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
}

.popover-body {
    color: var(--text-body);
}

/* Checkbox Styling */
.big_checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-gradient-start);
}

/* Label Improvements */
label {
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Card-like Sections */
section {
    background: white;
    border-radius: 12px;
    padding: 0;
}

/* Spacing Utilities */
.mb-xl-3 {
    margin-bottom: 1rem !important;
}

.mb-xl-4 {
    margin-bottom: 1.5rem !important;
}

@media (min-width: 1200px) {
    .mb-xl-3 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-xl-4 {
        margin-bottom: 2rem !important;
    }
}

/* Font Weight Utilities */
.fw-semibold {
    font-weight: 500 !important;
}

.fw-500 {
    font-weight: 500 !important;
}

/* ========================================
   High Contrast & Visibility Improvements
   ======================================== */

:root {
    /* Overriding variables for higher contrast */
    --text-medium: #111827; /* Darker labels */
    --text-muted: #4b5563;  /* Darker secondary text */
    --border-color: #9ca3af; /* Darker borders (Gray-400) */
}

/* Stronger Input Borders */
.form-control {
    border-color: #6b7280 !important; /* Gray-500 */
    color: #000000 !important;
    background-color: #ffffff !important;
}

.form-control:focus {
    border-color: var(--primary-gradient-start) !important;
    box-shadow: 0 0 0 0.15rem rgba(40, 49, 100, 0.15) !important;
    outline: none !important;
}

/* Darker Placeholders */
.form-control::placeholder {
    color: #6b7280 !important; /* Gray-500 */
    opacity: 1 !important;
}

/* Bolder, Darker Labels */
label, .control-label {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Darker Secondary Text */
.text-secondary, .text-muted {
    color: #4b5563 !important; /* Gray-600 */
}

/* Radio Button Visibility */
.form-check {
    border: 1px solid #d1d5db !important; /* Gray-300 border for unselected */
    background-color: #ffffff !important; /* White background (no grey) */
    padding-left: 2.5rem; /* Ensure space for the custom radio if needed, or standard padding */
}

.form-check:hover {
    border-color: #9ca3af !important;
    background-color: #f9fafb !important; /* Very light grey on hover only */
}

/* Link Visibility */
.link-style {
    font-weight: 600 !important;
}

/* Input Group Text (if any) */
.input-group-text {
    border-color: #6b7280 !important;
    color: #000000 !important;
}

/* ========================================
   Attention Banner Styles (High Contrast)
   ======================================== */
.attention-banner {
    background-color: #fffbeb !important; /* Amber-50 */
    border: 1px solid #d97706 !important; /* Amber-600 */
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.attention-header {
    display: flex;
    align-items: flex-start;
}

.attention-icon-wrapper {
    background: rgba(245, 158, 11, 0.2); /* Amber-500 with opacity */
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
}

.attention-icon {
    font-size: 1.1rem;
    color: #b45309 !important; /* Amber-700 */
}

.attention-content {
    flex: 1;
    color: #451a03 !important; /* Amber-950 */
}

.attention-title {
    font-weight: 700 !important;
    font-size: 0.95rem;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    color: #78350f !important; /* Amber-900 */
}

.attention-body {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #451a03 !important; /* Amber-950 */
    opacity: 1 !important;
}

.attention-link {
    color: #b45309 !important; /* Amber-700 */
    font-size: 1rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    text-shadow: 0.5px 0.5px 0.5px rgba(181, 83, 9, 0.3) !important;
}

.attention-link:hover {
    color: #78350f !important; /* Amber-900 */
    text-decoration: none !important;
}

/* Back to Sign In links - no underline ever */
a[href*="Login"]:hover {
    text-decoration: none !important;
}

/* Ensure links with inline style text-decoration: none !important stay that way on hover */
a[style*="text-decoration: none !important"]:hover {
    text-decoration: none !important;
}

/* ========================================
   Standardized Typography Classes
   ======================================== */

/* Page Title - Standardized */
.auth-page-title {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
}

/* Secondary Text - Standardized */
.auth-text-secondary {
    font-size: 0.95rem !important;
}

/* Form Labels - Standardized */
.auth-form-label {
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: var(--text-medium) !important;
}

.auth-form-label-no-margin {
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: var(--text-medium) !important;
    margin-bottom: 0 !important;
}

.auth-form-label-with-margin {
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: var(--text-medium) !important;
    margin-bottom: 0.5rem !important;
}

/* Navigation Links - Standardized (Back to Sign In, Sign up) */
.auth-nav-link {
    color: var(--primary-gradient-start) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-shadow: 0.5px 0.5px 0.5px rgba(40, 49, 100, 0.3) !important;
}

.auth-nav-link:hover {
    color: var(--primary-gradient-start) !important;
    text-decoration: none !important;
}

/* Forgot Password Link - Standardized */
.auth-forgot-link {
    color: var(--primary-gradient-start) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.auth-forgot-link:hover {
    color: var(--primary-gradient-end) !important;
    text-decoration: none !important;
}

/* Icon Colors - Standardized */
.auth-icon-primary {
    color: var(--primary-gradient-start) !important;
}

.auth-icon-info {
    color: #9ca3af !important;
}

.auth-icon-email {
    color: #3b82f6 !important;
}

.auth-icon-success {
    color: #10b981 !important;
}

.auth-icon-muted {
    color: var(--text-muted) !important;
}

/* Text Colors - Standardized */
.auth-text-muted {
    color: var(--text-muted) !important;
}

.auth-text-medium {
    color: var(--text-medium) !important;
}

.auth-text-bold {
    font-weight: 600 !important;
}

/* Checkbox Label - Standardized */
.auth-checkbox-label {
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: var(--text-medium) !important;
    cursor: pointer !important;
    user-select: none !important;
}

/* Info Tooltip - Standardized (moved from inline styles) */
.auth-info-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.auth-info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 8px 20px rgba(40, 49, 100, 0.25);
    z-index: 1000;
    max-width: 280px;
    min-width: 200px;
    white-space: normal;
    text-align: left;
    pointer-events: none;
}

.auth-info-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 4px);
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: var(--primary-gradient-start);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    filter: drop-shadow(-2px 0px 2px rgba(40, 49, 100, 0.15));
}

.auth-info-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(4px);
}

.auth-info-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Split Screen Layout (50/50)
   ======================================== */

.auth-split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-split-left {
    flex: 0 0 50%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-split-left::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="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(0,0,0,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.auth-split-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-dark);
}

.auth-logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.auth-logo-link:hover {
    transform: scale(1.05);
}

.auth-logo {
    max-width: 200px;
    height: auto;
}

.auth-split-right {
    flex: 0 0 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.auth-split-right-content {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Remove card styling from split layout */
.auth-split-right .card,
.auth-split-right .card-auth,
.auth-split-right .card-body {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Ensure content in split layout is properly styled */
.auth-split-right section {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .auth-split-left {
        display: none;
    }
    
    .auth-split-right {
        flex: 1 1 100%;
        padding: 1.5rem;
    }
}

/* ========================================
   Fix intl-tel-input Flag Images Path
   ======================================== */

/* Override relative paths in intlTelInput.min.css with absolute paths */
.iti__flag {
    background-image: url(/images/flags.png) !important;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url(/images/flags.png) !important;
        background-size: 5652px 15px;
    }
}

/* Small Icon - Standardized */
.auth-icon-small {
    color: var(--primary-gradient-start) !important;
    font-size: 0.85rem !important;
}
