/* ==========================================================================
   eProstuti Modern User Authentication Stylesheet
   Brand Colors: Navy (#002b6f) & Magenta (#960c83)
   ========================================================================== */

:root {
    --auth-navy: #002b6f;
    --auth-navy-hover: #001f52;
    --auth-magenta: #960c83;
    --auth-magenta-hover: #7e0a6e;
    --auth-card-radius: 18px;
    --auth-input-radius: 10px;
    --auth-shadow: 0 15px 35px -5px rgba(0, 43, 111, 0.1), 0 5px 15px rgba(0, 0, 0, 0.04);
}

.auth-page-wrapper {
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 43, 111, 0.03) 0%, rgba(150, 12, 131, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.auth-page-wrapper::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 43, 111, 0.05) 0%, rgba(0, 43, 111, 0) 70%);
    top: -120px;
    right: -120px;
    pointer-events: none;
}

.auth-page-wrapper::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(150, 12, 131, 0.05) 0%, rgba(150, 12, 131, 0) 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.auth-card {
    background: #ffffff;
    border-radius: var(--auth-card-radius);
    border: 1px solid rgba(0, 43, 111, 0.08);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card-accent {
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, var(--auth-navy) 0%, var(--auth-magenta) 100%);
}

.auth-card-body {
    padding: 24px;
}

@media (min-width: 576px) {
    .auth-card-body {
        padding: 36px;
    }
}

@media (min-width: 992px) {
    .auth-card-body {
        padding: 40px;
    }
}

.auth-logo-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.auth-logo-link:hover {
    transform: scale(1.02);
}

.auth-logo-img {
    max-height: 58px;
    max-width: 220px;
    object-fit: contain;
}

.auth-heading {
    font-weight: 700;
    color: var(--auth-navy);
    font-size: 24px;
    margin-bottom: 6px;
}

.auth-subheading {
    color: #64748b;
    font-size: 14px;
}

.auth-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    display: block;
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: var(--auth-input-radius);
    transition: all 0.2s ease;
}

.auth-input-group .input-group-text {
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    border-top-left-radius: var(--auth-input-radius);
    border-bottom-left-radius: var(--auth-input-radius);
    color: #64748b;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.auth-input-group .form-control,
.auth-input-group .form-select {
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-left: none;
    border-radius: 0;
    border-top-right-radius: var(--auth-input-radius);
    border-bottom-right-radius: var(--auth-input-radius);
    font-size: 14.5px;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.auth-input-group .form-control.has-toggle {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-input-group .form-control:focus,
.auth-input-group .form-select:focus {
    background-color: #ffffff;
    border-color: var(--auth-navy);
    box-shadow: none;
    outline: none;
}

.auth-input-group:focus-within .input-group-text {
    border-color: var(--auth-navy);
    background-color: #ffffff;
    color: var(--auth-navy);
}

.auth-input-group:focus-within .btn-password-toggle {
    border-color: var(--auth-navy);
    background-color: #ffffff;
}

.auth-input-group .btn-password-toggle {
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-left: none;
    border-top-right-radius: var(--auth-input-radius);
    border-bottom-right-radius: var(--auth-input-radius);
    color: #64748b;
    padding-left: 14px;
    padding-right: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-input-group .btn-password-toggle:hover {
    color: var(--auth-navy);
    background-color: #f1f5f9;
}

.auth-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 10px;
    padding-right: 38px;
}

.auth-radio-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.auth-radio-pill {
    flex: 1;
    margin-bottom: 0;
    cursor: pointer;
    position: relative;
    display: block;
}

.auth-radio-pill .auth-radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-radio-pill .auth-radio-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--auth-input-radius);
    background-color: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
    min-height: 44px;
}

.auth-radio-pill:hover .auth-radio-content {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
}

.auth-radio-pill .auth-radio-input:checked + .auth-radio-content {
    border-color: var(--auth-navy);
    background: linear-gradient(135deg, rgba(0, 43, 111, 0.08) 0%, rgba(224, 7, 125, 0.08) 100%);
    color: var(--auth-navy);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 43, 111, 0.12);
}

.auth-submit-btn {
    height: 48px;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--auth-navy) 0%, var(--auth-magenta) 100%);
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 43, 111, 0.22);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    cursor: pointer;
}

.auth-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--auth-navy-hover) 0%, var(--auth-magenta-hover) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 43, 111, 0.32);
    color: #ffffff;
}

.auth-submit-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}

.auth-forgot-link {
    color: var(--auth-navy);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: var(--auth-magenta);
    text-decoration: underline;
}

.auth-footer-link {
    color: var(--auth-navy);
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-footer-link:hover {
    color: var(--auth-magenta);
    text-decoration: underline;
}

.auth-support-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 20px;
    color: #128c7e;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-support-badge:hover {
    background: rgba(37, 211, 102, 0.15);
    color: #075e54;
}

.auth-step-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 43, 111, 0.08);
    color: var(--auth-navy);
    font-weight: 600;
    font-size: 12.5px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* SweetAlert custom styling for Auth */
.auth-swal-confirm-btn {
    border-radius: 25px !important;
    padding: 10px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    background: linear-gradient(135deg, var(--auth-navy) 0%, var(--auth-magenta) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 43, 111, 0.25) !important;
    cursor: pointer !important;
}

.auth-swal-cancel-btn {
    border-radius: 25px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    background: #e2e8f0 !important;
    color: #475569 !important;
    cursor: pointer !important;
}

/* Dark Mode Overrides */
.active-dark .auth-page-wrapper {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 20, 0.7) 100%);
}

.active-dark .auth-card {
    background: #18191a;
    border-color: #3a3b3c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.active-dark .auth-heading {
    color: #f1f5f9;
}

.active-dark .auth-subheading {
    color: #94a3b8;
}

.active-dark .auth-label {
    color: #e2e8f0;
}

.active-dark .auth-input-group .input-group-text,
.active-dark .auth-input-group .form-control,
.active-dark .auth-input-group .form-select,
.active-dark .auth-input-group .btn-password-toggle {
    background-color: #242526;
    border-color: #3a3b3c;
    color: #e2e8f0;
}

.active-dark .auth-input-group .form-control:focus,
.active-dark .auth-input-group .form-select:focus {
    background-color: #242526;
    border-color: var(--auth-magenta);
}

.active-dark .auth-input-group:focus-within .input-group-text,
.active-dark .auth-input-group:focus-within .btn-password-toggle {
    border-color: var(--auth-magenta);
    color: #ffffff;
}

.active-dark .auth-forgot-link,
.active-dark .auth-footer-link {
    color: #38bdf8;
}

.active-dark .auth-radio-pill .auth-radio-content {
    background-color: #242526;
    border-color: #3a3b3c;
    color: #cbd5e1;
}

.active-dark .auth-radio-pill:hover .auth-radio-content {
    background-color: #2d2e30;
    border-color: #4a4b4d;
}

.active-dark .auth-radio-pill .auth-radio-input:checked + .auth-radio-content {
    border-color: var(--auth-magenta);
    background: rgba(224, 7, 125, 0.18);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(224, 7, 125, 0.2);
}
