
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #102944;
    --navy-light: #1c4267;
    --gold: #c99b43;
    --gold-light: #e6c575;
    --text: #18314d;
    --muted: #74849a;
    --border: #dce3eb;
    --surface: #ffffff;
    --background: #f8f9fb;
    --danger: #b54747;
    --success: #287b59;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 48%, #fff 0%, #fafbfc 56%, #f5f6f8 100%);
}

.decor {
    position: absolute;
    width: 43vw;
    height: 43vw;
    max-width: 620px;
    max-height: 620px;
    min-width: 360px;
    min-height: 360px;
    transform: rotate(45deg);
}

.decor-top {
    top: -34vw;
    left: -19vw;
    background: linear-gradient(135deg, #10243c, #21486c);
    border-right: 3px solid var(--gold);
    box-shadow: 10px 12px 0 rgba(16, 41, 68, 0.035);
}

.decor-bottom {
    right: -27vw;
    bottom: -37vw;
    background: linear-gradient(135deg, #1c4267, #0c1e34);
    border-top: 3px solid var(--gold);
}

.decor-line {
    position: absolute;
    width: 260px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold));
    opacity: 0.95;
}

.line-one {
    top: 15%;
    left: 18%;
    transform: rotate(-48deg);
}

.line-two {
    bottom: 15%;
    right: 18%;
    transform: rotate(-48deg);
}

.decor-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.8;
}

.circle-one {
    top: 17%;
    right: -240px;
}

.circle-two {
    bottom: -235px;
    left: -170px;
}

.site-header,
.page-footer,
.auth-layout {
    position: relative;
    z-index: 1;
}

.site-header {
    display: flex;
    align-items: center;
    min-height: 90px;
    padding: 20px 4.5%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    white-space: nowrap;
}

.brand-name > span {
    color: var(--gold);
}

.brand-divider {
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.brand-tagline {
    font-size: 12px;
    color: var(--muted);
}

.auth-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px 20px 44px;
    min-height: calc(100vh - 150px);
    min-height: calc(100dvh - 150px);
}

.auth-card {
    width: 100%;
    max-width: 500px;
    padding: 38px 46px 30px;
    border: 1px solid rgba(192, 204, 218, 0.85);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 25px 65px rgba(18, 42, 69, 0.075),
        0 3px 10px rgba(18, 42, 69, 0.025);
    backdrop-filter: blur(10px);
}

.mobile-brand {
    display: none;
    text-align: center;
    margin-bottom: 18px;
}

.brand-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 3px;
    color: var(--navy);
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.auth-brand {
    text-align: center;
    margin-bottom: 35px;
}

.auth-brand .brand-name {
    font-size: 29px;
    letter-spacing: -1px;
}

.auth-brand p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.auth-heading {
    text-align: center;
    margin-bottom: 26px;
}

.auth-heading h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.7;
    color: var(--navy);
}

.auth-heading p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    margin-bottom: 18px;
    border-radius: 10px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.alert-error {
    color: var(--danger);
    background: #fff5f4;
    border: 1px solid #f0d7d4;
}

.alert-success {
    color: var(--success);
    background: #f0faf5;
    border: 1px solid #d0eadc;
}

.alert-icon {
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-weight: 700;
}

.form-group {
    margin-bottom: 17px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    color: #8291a5;
    pointer-events: none;
}

.form-input {
    display: block;
    width: 100%;
    height: 55px;
    padding: 0 48px 0 15px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-input::placeholder {
    color: #9ba7b6;
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 155, 67, 0.12);
}

.form-input[readonly] {
    background: #f7f8fa;
    color: #65768a;
    cursor: default;
}

.form-hint {
    color: var(--muted);
    font-size: 11px;
    margin: 7px 2px 0;
}

.primary-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 55px;
    padding: 12px 18px;
    margin-top: 25px;
    color: #fff;
    background: linear-gradient(110deg, #204a72, #102944);
    border: 1px solid rgba(16, 41, 68, 0.1);
    border-radius: 15px;
    box-shadow: 0 7px 16px rgba(16, 41, 68, 0.12);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 22px rgba(16, 41, 68, 0.18);
    filter: brightness(1.08);
}

.primary-button:active {
    transform: translateY(0);
}

.button-arrow {
    color: var(--gold-light);
    font-size: 21px;
    line-height: 1;
}

.text-link {
    display: inline-block;
    color: #286092;
    font-size: 12px;
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--gold);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.back-link:hover {
    color: var(--navy);
}

.auth-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    color: #9aa5b3;
    font-size: 10px;
}

.footer-line {
    height: 1px;
    flex: 1;
    background: #e6eaf0;
}

.page-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px 20px;
    color: #8995a5;
    font-size: 11px;
}

.footer-dot {
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
}

@media (max-width: 600px) {
    .site-header {
        min-height: 66px;
        padding: 14px 20px;
    }

    .brand {
        gap: 10px;
    }

    .brand-name {
        font-size: 15px;
    }

    .brand-tagline {
        font-size: 10px;
    }

    .brand-divider {
        width: 18px;
    }

    .auth-layout {
        min-height: auto;
        padding: 22px 16px 30px;
    }

    .auth-card {
        max-width: 430px;
        padding: 28px 22px 23px;
        border-radius: 18px;
    }

    .mobile-brand {
        display: block;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
    }

    .auth-brand {
        margin-bottom: 27px;
    }

    .auth-brand .brand-name {
        font-size: 25px;
    }

    .auth-heading h1 {
        font-size: 20px;
    }

    .auth-heading p {
        font-size: 12px;
    }

    .decor {
        opacity: 0.85;
    }

    .decor-top {
        top: -330px;
        left: -300px;
    }

    .decor-bottom {
        right: -330px;
        bottom: -350px;
    }

    .decor-line,
    .decor-circle {
        opacity: 0.45;
    }

    .page-footer {
        padding-bottom: 15px;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .auth-card {
        padding: 25px 17px 20px;
    }

    .form-input {
        height: 51px;
    }

    .primary-button {
        min-height: 52px;
    }

    .brand-tagline {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.resend-button {
    background: transparent;
    border: 0;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

/* Compact animated logo for the customer login page */
.auth-brand-animation {
    width: 100%;
    height: 145px;
    margin: 0 auto 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-animation {
    display: block;
    width: 100%;
    max-width: 240px;
    height: 145px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
}

@media (max-width: 600px) {
    .auth-brand-animation {
        height: 135px;
        margin-bottom: 20px;
    }

    .login-logo-animation {
        max-width: 220px;
        height: 135px;
    }
}

@media (max-width: 360px) {
    .auth-brand-animation {
        height: 125px;
    }

    .login-logo-animation {
        max-width: 205px;
        height: 125px;
    }
}
