/* ==========================================================================
   NHI BRAND - Modern Authentication & User Registration Stylesheet
   File: assetsweb/css/auth.css
   ========================================================================== */

/* 1. Global Auth Cards & Containers
   -------------------------------------------------------------------------- */
.auth-card,
.login-card,
.register-card,
.welcome-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #008745;
    transition: all 0.3s ease;
}

.login-card {
    padding: 35px 30px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.register-card {
    padding: 30px 35px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.welcome-card {
    padding: 40px 30px;
    margin-top: 30px;
    margin-bottom: 40px;
    border-top: 5px solid #008745;
}

/* 2. Headers & Typography
   -------------------------------------------------------------------------- */
.auth-header,
.login-header,
.register-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h3,
.login-header h3,
.register-header h3 {
    font-weight: 700;
    color: #1a202c;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 24px;
}

.auth-header p,
.login-header p,
.register-header p {
    color: #718096;
    font-size: 14px;
    margin-bottom: 0;
}

/* 2.1 Custom Modern Alerts
   -------------------------------------------------------------------------- */
.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13.5px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    border: 1px solid transparent;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.auth-alert .alert-icon {
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert .alert-content {
    flex-grow: 1;
}

.auth-alert .alert-content strong {
    font-weight: 600;
}

.auth-alert .alert-close {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    padding: 0 4px;
    margin-left: auto;
    flex-shrink: 0;
    color: inherit;
    transition: opacity 0.2s;
}

.auth-alert .alert-close:hover {
    opacity: 1;
}

.auth-alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.auth-alert-danger .alert-icon {
    color: #dc2626;
}

.auth-alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.auth-alert-success .alert-icon {
    color: #16a34a;
}

.auth-note-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 20px 0 25px 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #92400e;
    font-size: 13.5px;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.auth-note-box .note-icon {
    font-size: 20px;
    color: #d97706;
    flex-shrink: 0;
}

.auth-note-box strong {
    color: #78350f;
    font-weight: 600;
}



/* 3. Form Controls & Inputs
   -------------------------------------------------------------------------- */
.auth-card .form-group,
.login-card .form-group,
.register-card .form-group {
    margin-bottom: 18px;
}

.auth-card .form-group label,
.login-card .form-group label,
.register-card .form-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}

.auth-card .input-group-addon,
.login-card .input-group-addon,
.register-card .input-group-addon {
    background-color: #f8fafc;
    border-color: #cbd5e0;
    color: #008745;
    min-width: 42px;
}

.auth-card .form-control,
.login-card .form-control,
.register-card .form-control {
    height: 42px;
    border-radius: 4px;
    border: 1px solid #cbd5e0;
    box-shadow: none;
    font-size: 14px;
    transition: all 0.2s;
}

.auth-card .form-control:focus,
.login-card .form-control:focus,
.register-card .form-control:focus {
    border-color: #008745;
    box-shadow: 0 0 0 3px rgba(0, 135, 69, 0.15);
}

.password-toggle {
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
    margin-top: 5px;
}

.password-toggle label {
    cursor: pointer;
    font-weight: 500 !important;
    font-size: 13px !important;
    color: #4a5568 !important;
    margin-bottom: 0;
}

.field-error {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* 4. Sponsor Status Badges
   -------------------------------------------------------------------------- */
.sponsor-badge {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    line-height: 1.35;
    transition: all 0.3s ease;
}

.sponsor-badge i {
    font-size: 15px;
    flex-shrink: 0;
}

.sponsor-badge.badge-valid {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.sponsor-badge.badge-valid .label-count {
    display: inline-block;
    background: #c8e6c9;
    color: #1b5e20;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 5px;
}

.sponsor-badge.badge-limit {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

.sponsor-badge.badge-error {
    background: #fff3e0;
    color: #d84315;
    border: 1px solid #ffe0b2;
}

/* 5. Buttons & Actions
   -------------------------------------------------------------------------- */
.btn-login,
.btn-register,
.btn-login-now {
    background: #008745;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
}

.btn-login:hover,
.btn-register:hover,
.btn-login-now:hover {
    background: #006e38;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 135, 69, 0.3);
}

.btn-register:disabled,
.btn-login:disabled {
    background: #a0aec0 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

.btn-print {
    background: #edf2f7;
    color: #2d3748 !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    font-size: 15px;
    transition: all 0.2s;
}

.btn-print:hover {
    background: #e2e8f0;
    color: #1a202c !important;
}

/* 6. Auth Footer & Navigation Links
   -------------------------------------------------------------------------- */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
    font-size: 14px;
    color: #4a5568;
}

.auth-footer a {
    color: #008745;
    font-weight: 600;
}

.auth-footer a:hover {
    color: #006e38;
    text-decoration: underline;
}

/* 7. Welcome Page / User Details Specifics
   -------------------------------------------------------------------------- */
.success-icon {
    width: 80px;
    height: 80px;
    background: #e6f4ea;
    color: #008745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px auto;
}

.welcome-title {
    font-weight: 700;
    color: #1a202c;
    font-size: 26px;
    margin-bottom: 8px;
}

.welcome-subtitle {
    color: #4a5568;
    font-size: 15px;
    margin-bottom: 25px;
}

.receipt-table {
    margin-top: 20px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.receipt-table th {
    background-color: #f8fafc;
    color: #4a5568;
    font-weight: 600;
    width: 35%;
    padding: 12px 18px !important;
    border-top: 1px solid #e2e8f0 !important;
}

.receipt-table td {
    padding: 12px 18px !important;
    color: #1a202c;
    font-weight: 500;
    border-top: 1px solid #e2e8f0 !important;
}

.badge-highlight {
    background: #e6f4ea;
    color: #008745;
    font-size: 16px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.action-btn-group {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 8. Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .site > *:not(.login-section),
    .action-btn-group,
    .top-bar,
    .main-menu,
    .footer-section,
    .scroll-to-top {
        display: none !important;
    }
    .welcome-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin: 0 !important;
        padding: 20px !important;
    }
}

/* 9. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .login-card,
    .register-card,
    .welcome-card {
        padding: 22px 16px;
    }
    .welcome-title {
        font-size: 22px;
    }
    .receipt-table th,
    .receipt-table td {
        padding: 10px 12px !important;
        font-size: 13px;
    }
    .action-btn-group .btn {
        width: 100%;
        margin-bottom: 8px;
    }
}
