:root,
[data-theme="light"] {
    --auth-overlay:
        linear-gradient(90deg, rgba(42,10,74,.38), rgba(42,10,74,.18));

    --auth-card-bg: rgba(255,255,255,.96);
    --auth-title: #2a0a4a;
    --auth-muted: #6f6385;
    --auth-input-bg: #faf8fd;
    --auth-input-border: #e7d9f5;
    --auth-input-text: #2a0a4a;
    --auth-role-bg: #f8f3ff;
    --auth-role-text: #5c397e;
    --auth-social-bg: #fff;
    --auth-social-text: #49315f;
    --auth-divider: #eadff2;
    --auth-link: #9900ff;
    --auth-shadow: rgba(15,5,30,.25);
}

:root[data-theme="dark"],
body[data-theme="dark"] {
    --auth-overlay:
        linear-gradient(90deg, rgba(12,5,25,.82), rgba(25,8,45,.72));

    --auth-card-bg: rgba(30,17,45,.96);
    --auth-title: #fff;
    --auth-muted: #c0b2d0;
    --auth-input-bg: #241631;
    --auth-input-border: #49305d;
    --auth-input-text: #fff;
    --auth-role-bg: #352044;
    --auth-role-text: #e4d5f2;
    --auth-social-bg: #352044;
    --auth-social-text: #fff;
    --auth-divider: #49305d;
    --auth-link: #d18aff;
    --auth-shadow: rgba(0,0,0,.45);
}

body.auth-body {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    background: #2a0a4a !important;
    overflow-x: hidden;
    font-family: 'Cairo', sans-serif;
}

body.auth-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        var(--auth-overlay),
        url("../img/raseef-auth-bg.png") center / cover no-repeat;
}



.auth-body .raseef-nav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.auth-body .raseef-nav .brand {
    display: none;
}

.auth-body .raseef-nav .container {
    justify-content: flex-end;
}

.auth-body .raseef-nav .text-link {
    color: #fff !important;
    font-weight: 800;
}



.auth-body .auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 90px 15px 40px;
    position: relative;
    z-index: 1;
}



.auth-body .auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--auth-card-bg) !important;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 26px;
    padding: 32px 28px;
    box-shadow: 0 25px 70px var(--auth-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}



.auth-body .auth-logo {
    text-align: center;
    margin-bottom: 22px;
}

.auth-body .auth-logo .logo-img {
    max-width: 155px;
    height: auto;
    object-fit: contain;
}

.auth-body .auth-logo p {
    color: var(--auth-muted);
    margin-top: 8px;
}



.auth-body .auth-title {
    color: var(--auth-title) !important;
    font-weight: 900;
}

.auth-body .muted {
    color: var(--auth-muted) !important;
}


.auth-body .role-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.auth-body .role-switch button {
    flex: 1;
    border: 1px solid var(--auth-input-border);
    background: var(--auth-role-bg);
    color: var(--auth-role-text);
    padding: 11px;
    border-radius: 13px;
    font-family: inherit;
    font-weight: 800;
    transition: .25s ease;
}

.auth-body .role-switch button.active {
    background: #2a0a4a !important;
    border-color: #2a0a4a;
    color: #f0ff00 !important;
}



.auth-body .ifield {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: 14px;
    padding: 0 14px;
}

.auth-body .ifield:focus-within {
    border-color: #9900ff;
    box-shadow: 0 0 0 3px rgba(153,0,255,.10);
}

.auth-body .ifield > i {
    color: #9900ff;
    font-size: 18px;
}

.auth-body .ifield .form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: 52px;
    font-family: inherit;
    color: var(--auth-input-text) !important;
}

.auth-body .ifield .form-control::placeholder {
    color: var(--auth-muted);
}



.auth-body .btn-primary {
    background: #9900ff !important;
    border-color: #9900ff !important;
    font-family: inherit;
    font-weight: 800;
    padding: 12px;
}

.auth-body .btn-primary:hover {
    background: #7a00cc !important;
    border-color: #7a00cc !important;
}



.auth-body .auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-muted);
    margin: 22px 0;
}

.auth-body .auth-divider::before,
.auth-body .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-divider);
}



.auth-body .social-buttons {
    display: flex;
    gap: 12px;
}

.auth-body .btn-social {
    flex: 1;
    background: var(--auth-social-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: 12px;
    padding: 11px;
    color: var(--auth-social-text);
    font-family: inherit;
    font-weight: 700;
    transition: .25s ease;
}

.auth-body .btn-social:hover {
    border-color: #9900ff;
    transform: translateY(-2px);
}



.auth-body .text-link {
    color: var(--auth-link);
    font-weight: 800;
    text-decoration: none;
}



@media (max-width: 576px) {
    .auth-body .auth-wrap {
        padding: 85px 14px 30px;
    }

    .auth-body .auth-card {
        padding: 26px 20px;
        border-radius: 22px;
    }

    .auth-body .auth-logo .logo-img {
        max-width: 135px;
    }

    body.auth-body::before {
        background:
            var(--auth-overlay),
            url("../img/raseef-auth-bg.png") 58% center / cover no-repeat;
    }
}
