.adw-auth-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow: hidden;
    padding: 32px 20px;
    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(214, 178, 0, 0.2),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 90%,
            rgba(10, 143, 61, 0.22),
            transparent 32%
        ),
        linear-gradient(135deg, #081706 0%, #1f4f12 48%, #06612a 100%);
}

.adw-auth-page::before {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: url("../img/islamic-pattern.svg");
    background-size: 360px;
    content: "";
    pointer-events: none;
}

.adw-auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1080px, 100%);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(2, 49, 21, 0.34);
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
}

.adw-auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 48px;
    background: linear-gradient(145deg, #1f4f12, #087934);
    color: #fff;
}

.adw-auth-visual::after {
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 360px;
    height: 360px;
    border: 70px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
}

.adw-auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 10px 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
}

.adw-auth-brand img {
    width: auto;
    max-width: 145px;
    height: 40px;
    object-fit: contain;
}

.adw-auth-visual__copy {
    position: relative;
    z-index: 1;
    max-width: 470px;
}

.adw-auth-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ffe892;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    gap: 9px;
}

.adw-auth-kicker::before {
    width: 28px;
    height: 2px;
    background: #d6b200;
    content: "";
}

.adw-auth-visual h1 {
    margin: 0 0 17px;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
}

.adw-auth-visual p {
    max-width: 430px;
    margin: 0;
    color: #d6e9d1;
    font-size: 14px;
}

.adw-auth-trust {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.adw-auth-trust span {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
    font-weight: 700;
    gap: 7px;
}

.adw-auth-trust svg,
.adw-auth-trust i {
    width: 14px;
    height: 14px;
    color: #ffe17a;
}

.adw-auth-trust i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.adw-auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 6vw, 68px);
}

.adw-auth-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: #e8f8ee;
    color: #087934;
}

.adw-auth-panel__icon svg,
.adw-auth-panel__icon > i {
    width: 24px;
    height: 24px;
}

.adw-auth-panel__icon > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.adw-auth-panel h2 {
    margin: 0 0 8px;
    color: #1f4f12;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
}

.adw-auth-panel__lead {
    margin: 0 0 30px;
    color: #6b7280;
}

.adw-field {
    margin-bottom: 19px;
}

.adw-field label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.adw-input-wrap {
    position: relative;
}

.adw-input-wrap > svg,
.adw-input-wrap > .adw-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    color: #6b7280;
    transform: translateY(-50%);
    pointer-events: none;
}

.adw-input-wrap > .adw-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.adw-input-wrap .form-control {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 46px;
    border: 1px solid #dfe6e1;
    border-radius: 13px;
    background: #fcfdfc;
    color: #1b1b1b;
    outline: none;
    box-shadow: none;
}

.adw-input-wrap .form-control:focus {
    border-color: #0a8f3d;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(10, 143, 61, 0.1);
}

.adw-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transform: translateY(-50%);
}

.adw-password-toggle:hover {
    background: #e8f8ee;
    color: #087934;
}

.adw-password-toggle svg {
    width: 18px;
    height: 18px;
}

.adw-form-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 4px 0 24px;
}

.adw-form-meta a,
.adw-auth-secondary-link {
    color: #087934;
    font-weight: 750;
}

.adw-form-meta a:hover,
.adw-auth-secondary-link:hover {
    color: #1f4f12;
}

.adw-auth-register {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding-top: 21px;
    border-top: 1px solid #edf1ee;
    color: #6b7280;
    font-size: 14px;
    gap: 6px;
}

.adw-auth-register a {
    color: #087934;
    font-weight: 800;
}

.adw-auth-register a:hover {
    color: #1f4f12;
}

.adw-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 22px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #0a8f3d, #1f4f12);
    box-shadow: 0 10px 24px rgba(10, 143, 61, 0.2);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.adw-primary-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(10, 143, 61, 0.28);
}

.adw-primary-button:focus,
.adw-primary-button:focus-visible {
    background: linear-gradient(135deg, #b89400, #7a6200);
    color: #fff;
    outline: 3px solid rgba(214, 178, 0, 0.3);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(255, 232, 146, 0.24);
}

.adw-account-access-button {
    color: #fff !important;
    gap: 5px;
}

.adw-account-access-button span {
    color: #fff;
}

.adw-account-access-button strong {
    color: #ffe17a;
    font-weight: 850;
}

.adw-token-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.adw-captcha-row {
    display: grid;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #dfe6e1;
    border-radius: 16px;
    background: #fcfdfc;
    gap: 10px;
    grid-template-columns: 1fr auto;
}

.adw-captcha-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    overflow: hidden;
    border: 1px dashed #95ddb4;
    border-radius: 12px;
    background-color: #f4fbf6;
    background-image:
        linear-gradient(45deg, rgba(10, 143, 61, 0.035) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(10, 143, 61, 0.035) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(10, 143, 61, 0.035) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(10, 143, 61, 0.035) 75%);
    background-position:
        0 0,
        0 8px,
        8px -8px,
        -8px 0;
    background-size: 16px 16px;
}

.adw-captcha-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 60px;
    border-radius: 8px;
    mix-blend-mode: multiply;
}

.adw-captcha-reload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #c7eed7;
    border-radius: 12px;
    background: #e8f8ee;
    color: #087934;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    gap: 7px;
    transition:
        background 180ms ease,
        transform 180ms ease;
}

.adw-captcha-reload:hover {
    background: #c7eed7;
    transform: translateY(-1px);
}

.adw-captcha-reload:focus,
.adw-captcha-reload:focus-visible {
    border-color: #b89400;
    background: #fff4c6;
    color: #7a6200;
    outline: 3px solid rgba(214, 178, 0, 0.24);
}

.adw-captcha-reload svg,
.adw-captcha-reload > i {
    width: 19px;
    height: 19px;
}

.adw-captcha-reload > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.adw-captcha-heading {
    display: flex;
    align-items: center;
    margin: 3px 0 9px;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
}

.adw-captcha-heading__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #e8f8ee;
    color: #087934;
}

.adw-captcha-heading__icon svg,
.adw-captcha-heading__icon > i {
    width: 14px;
    height: 14px;
}

.adw-captcha-heading__icon > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.adw-captcha-help {
    display: block;
    margin: -12px 0 18px;
    color: #9ca3af;
    font-size: 14px;
}

.adw-auth-success {
    text-align: center;
}

.adw-auth-success .adw-auth-panel__icon {
    width: 76px;
    height: 76px;
    margin-right: auto;
    margin-left: auto;
    border-radius: 24px;
}

.adw-auth-success .adw-auth-panel__icon svg {
    width: 36px;
    height: 36px;
}

.adw-auth-success .adw-auth-panel__lead {
    margin-bottom: 28px;
}

@media (max-width: 899.98px) {
    .adw-auth-shell {
        width: min(600px, 100%);
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .adw-auth-visual {
        min-height: 260px;
        padding: 30px;
        gap: 40px;
    }

    .adw-auth-visual h1 {
        font-size: 30px;
    }

    .adw-auth-trust {
        display: none;
    }

    .adw-auth-panel {
        padding: 38px 30px;
    }
}

@media (max-width: 479.98px) {
    .adw-auth-page {
        display: block;
        padding: 0;
        background: #fff;
    }

    .adw-auth-page::before {
        display: none;
    }

    .adw-auth-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .adw-auth-visual {
        min-height: 215px;
        padding: 24px;
        border-radius: 0 0 28px 28px;
    }

    .adw-auth-brand img {
        max-width: 110px;
        height: 31px;
    }

    .adw-auth-visual__copy p {
        display: none;
    }

    .adw-auth-panel {
        justify-content: flex-start;
        padding: 34px 24px 44px;
    }

    .adw-auth-panel__icon {
        display: none;
    }

    .adw-captcha-row {
        grid-template-columns: 1fr;
    }

    .adw-captcha-reload {
        width: 100%;
    }
}
