/* ============================================
   HRIT - Mobile-Friendly Login/Register CSS
   Color Theme: #60060f, #ff5e14, #0F172A
   ============================================ */

/* ---------- Override parent container ---------- */
.container-fluid:has(.auth-wrapper) {
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide top bar on auth pages */
body:has(.auth-wrapper) #alert-section {
    display: none;
}

/* Mobile helpline - hidden on desktop */
.auth-helpline-mobile {
    display: none;
}

/* ---------- Layout ---------- */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
}

.auth-left {
    background: linear-gradient(180deg, #0f172a 0%, #1a1028 50%, #60060f 100%);
    color: #fff;
    padding: 50px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative circles */
.auth-left::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 94, 20, 0.06);
    top: -80px;
    right: -80px;
}

.auth-left::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 94, 20, 0.04);
    bottom: -60px;
    left: -60px;
}

.auth-right {
    flex: 1;
    background: #f5f0eb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

/* ---------- Left Panel ---------- */
.auth-left .auth-logo {
    position: relative;
    z-index: 1;
}

.auth-left .auth-logo img {
    max-width: 180px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.auth-left .auth-tagline {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.auth-left .auth-tagline-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 35px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Divider line */
.auth-left .auth-divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff5e14, #ff8a50);
    border-radius: 2px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

/* Steps */
.auth-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
    max-width: 260px;
    position: relative;
    z-index: 1;
}

.auth-steps li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}

.auth-steps li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-steps .step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff5e14, #ff8a50);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    box-shadow: 0 3px 12px rgba(255, 94, 20, 0.3);
}

.auth-steps .step-text {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.auth-steps .step-text strong {
    color: #fff;
    font-weight: 600;
}

/* Helpline */
.auth-helpline {
    margin-top: 35px;
    text-align: center;
    width: 100%;
    max-width: 260px;
    position: relative;
    z-index: 1;
}

.auth-helpline h5 {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.auth-helpline a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    margin: 0 8px 8px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s;
}

.auth-helpline a:hover {
    color: #ff5e14;
    border-color: rgba(255, 94, 20, 0.4);
    background: rgba(255, 94, 20, 0.08);
}

.auth-helpline a i {
    margin-right: 5px;
}

/* ---------- Form Card ---------- */
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 40px 35px;
    width: 100%;
    max-width: 520px;
    position: relative;
}

.auth-card-wide {
    max-width: 620px;
}

/* Top accent bar on card */
.auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 3px;
    background: linear-gradient(90deg, #0f172a, #ff5e14, #60060f);
    border-radius: 0 0 3px 3px;
}

.auth-card .auth-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.auth-card .auth-subtitle {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ---------- Tabs ---------- */
.auth-tabs {
    display: flex;
    margin-bottom: 28px;
    list-style: none;
    padding: 4px;
    margin-top: 0;
    background: #f5f0eb;
    border-radius: 10px;
    gap: 4px;
}

.auth-tabs li {
    flex: 1;
    text-align: center;
}

.auth-tabs li a {
    display: block;
    padding: 10px 5px;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s;
}

.auth-tabs li a:hover {
    color: #60060f;
}

.auth-tabs li.active a {
    color: #0f172a;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ---------- Form Styles ---------- */
.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form label .required-field {
    color: #ff5e14;
    text-transform: none;
}

.auth-form .form-control {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.25s;
    box-sizing: border-box;
    -webkit-appearance: none;
    color: #333;
}

.auth-form .form-control::placeholder {
    color: #bbb;
    font-weight: 400;
}

.auth-form .form-control:hover {
    border-color: #ccc;
}

.auth-form .form-control:focus {
    border-color: #ff5e14;
    box-shadow: 0 0 0 3px rgba(255, 94, 20, 0.08);
    outline: none;
    background: #fff;
}

.auth-form select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
}

/* ---------- Icon Inputs ---------- */
.auth-input-icon {
    position: relative;
}

.auth-input-icon .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.25s;
}

.auth-input-icon .form-control {
    padding-left: 42px;
}

.auth-input-icon select.form-control {
    padding-left: 42px;
}

.auth-input-icon:focus-within .input-icon {
    color: #ff5e14;
}

.auth-form .invalid-feedback {
    color: #dc3545;
    font-size: 11px;
    margin-top: 5px;
    font-weight: 500;
}

.auth-form .is-invalid {
    border-color: #dc3545 !important;
    background: #fff5f5;
}

/* ---------- Form Row (2-col on desktop) ---------- */
.auth-form-row {
    display: flex;
    gap: 16px;
}

.auth-form-row > .auth-form-col {
    flex: 1;
    min-width: 0;
}

.auth-form-row > .auth-form-col-sm {
    flex: 0 0 100px;
    min-width: 0;
}

/* ---------- Buttons ---------- */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
    margin-top: 6px;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.25);
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #1e293b, #334155);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.35);
    transform: translateY(-2px);
}

.auth-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.2);
}

.auth-btn i {
    font-size: 14px;
    transition: transform 0.25s;
}

.auth-btn:hover i {
    transform: translateX(3px);
}

/* ---------- Password Toggle ---------- */
.auth-password-wrapper {
    position: relative;
}

.auth-password-wrapper .form-control {
    padding-right: 44px;
    padding-left: 42px;
}

.auth-password-wrapper .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #ccc;
    font-size: 15px;
    z-index: 2;
    transition: color 0.2s;
}

.auth-password-wrapper .toggle-password:hover {
    color: #ff5e14;
}

/* ---------- Links ---------- */
.auth-link {
    color: #0f172a;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s;
    letter-spacing: 0.2px;
}

.auth-link:hover {
    color: #ff5e14;
}

.auth-forgot {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 22px;
}

/* ---------- Note / Instruction ---------- */
.auth-note {
    background: linear-gradient(135deg, #fff8f0, #fff5eb);
    border-left: 3px solid #ff5e14;
    padding: 12px 16px;
    font-size: 12px;
    color: #666;
    border-radius: 0 10px 10px 0;
    margin-bottom: 24px;
    line-height: 1.6;
}

.auth-note strong {
    color: #0f172a;
}

/* ---------- Processing ---------- */
.auth-processing {
    text-align: center;
    color: #ff5e14;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 0;
}

/* ---------- Form Divider ---------- */
.auth-form-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #ccc;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.auth-form-divider::before,
.auth-form-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}

.auth-form-divider::before {
    margin-right: 12px;
}

.auth-form-divider::after {
    margin-left: 12px;
}

/* ---------- Alerts ---------- */
.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    position: relative;
}

.auth-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-alert .close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

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

/* ---------- Top Bar ---------- */
.auth-topbar {
    background: #0f172a;
    text-align: center;
    padding: 8px 15px;
    font-size: 13px;
    color: #fff;
    font-weight: 400;
}

.auth-topbar strong {
    font-weight: 600;
}

.auth-topbar a {
    color: #ff5e14;
    text-decoration: none;
    margin: 0 8px;
}

.auth-topbar a:hover {
    color: #fff;
}

.auth-topbar a i {
    margin-right: 4px;
}

/* ============================================
   Responsive: Tablet & Desktop
   ============================================ */

@media (min-width: 768px) {
    .auth-wrapper {
        flex-direction: row;
    }

    .auth-left {
        width: 35%;
        min-width: 300px;
        max-width: 380px;
        min-height: 100vh;
        position: sticky;
        top: 0;
        padding: 50px 30px;
    }

    .auth-right {
        flex: 1;
        padding: 40px 30px;
    }

    .auth-card {
        padding: 40px 35px;
    }
}

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

    .auth-right {
        padding: 50px 40px;
    }

    .auth-card {
        padding: 45px 40px;
    }

    .auth-left .auth-logo img {
        max-width: 260px;
    }
}

/* ============================================
   Responsive: Small Mobile
   ============================================ */

@media (max-width: 767px) {
    .auth-right {
        padding: 25px 20px;
    }

    .auth-card,
    .auth-card-wide {
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .auth-form-row {
        flex-direction: column;
        gap: 0;
    }

    .auth-form-row > .auth-form-col-sm {
        flex: 1;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 8px;
    }

    .auth-left {
        padding: 15px 15px 10px;
    }

    .auth-left .auth-logo img {
        max-width: 150px;
        margin-bottom: 12px;
        padding: 10px 14px;
    }

    .auth-left .auth-tagline {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .auth-left .auth-tagline-sub {
        font-size: 10px;
        margin-bottom: 12px;
    }

    .auth-left .auth-divider {
        margin-bottom: 12px;
    }

    .auth-steps li {
        padding: 6px 8px;
        margin-bottom: 0;
    }

    .auth-steps .step-number {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 12px;
        border-radius: 6px;
    }

    .auth-steps {
        display: flex;
        gap: 10px;
        max-width: 100%;
    }

    .auth-steps li {
        flex: 1;
        flex-direction: column;
        text-align: center;
        margin-bottom: 0;
    }

    .auth-steps .step-number {
        margin-right: 0;
        margin-bottom: 6px;
    }

    .auth-steps .step-text {
        font-size: 11px;
    }

    .auth-helpline {
        display: none;
    }

    .auth-right::after {
        content: "";
        display: block;
    }

    .auth-helpline-mobile {
        display: block !important;
        background: #0f172a;
        text-align: center;
        padding: 20px 15px;
        width: 100%;
    }

    .auth-helpline-mobile h5 {
        color: #ff5e14;
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 10px;
    }

    .auth-helpline-mobile a {
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        font-size: 13px;
        display: inline-block;
        margin: 0 10px;
    }

    .auth-helpline-mobile a:hover {
        color: #ff5e14;
    }

    .auth-helpline-mobile a i {
        margin-right: 4px;
    }

    .auth-topbar {
        font-size: 12px;
        padding: 6px 10px;
    }
}
