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

:root {
    --navy: #17365d;
    --navy-dark: #102b4c;
    --navy-light: #244a75;
    --gold: #d6ad58;
    --background: #f3f6fb;
    --text: #24364b;
    --muted: #8290a3;
    --border: #e5ebf3;
    --danger: #b42318;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    color: var(--text);
    background: var(--background);
    font-size: 13px;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.login-page {
    position: relative;
    min-height: 100vh;
    padding: 35px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-decoration {
    position: fixed;
    border: 1px solid rgba(23, 54, 93, .07);
    border-radius: 50%;
    pointer-events: none;
}

.decoration-one {
    width: 420px;
    height: 420px;
    top: -210px;
    right: -130px;
}

.decoration-two {
    width: 550px;
    height: 550px;
    bottom: -330px;
    left: -200px;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    padding: 36px 36px 27px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 18px 55px rgba(24, 49, 79, .09);
}

.login-brand {
    text-align: center;
}

.brand-emblem {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--gold);
    border: 1px solid rgba(214, 173, 88, .6);
    border-radius: 13px;
    overflow: hidden;
    margin-inline: auto;
}

.brand-emblem a {
    width: 100%;
    height: 100%;
    display: block;
}

.brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    transition: transform 0.25s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo {
        transition: none;
    }

    .brand-logo:hover {
        transform: none;
    }
}

.brand-label {
    color: #9a7936;
    font-size: 11px;
    font-weight: 600;
}

.login-brand h1 {
    margin: 5px 0 2px;
    color: var(--navy);
    font-size: 25px;
    font-weight: 800;
}

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

.login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 24px 0;
    color: var(--gold);
}

.login-divider span {
    width: 65px;
    height: 1px;
    background: var(--border);
}

.login-divider i {
    font-size: 14px;
}

.login-heading {
    margin-bottom: 22px;
}

.login-heading h2 {
    margin: 0 0 5px;
    color: var(--navy);
    font-size: 17px;
    font-weight: 700;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 2;
}

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 17px;
    padding: 11px 12px;
    color: var(--danger);
    background: #fff4f2;
    border: 1px solid #f3d5d1;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.9;
}

.login-error i {
    margin-top: 4px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    color: #344960;
    font-size: 12px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > i:first-child {
    position: absolute;
    right: 14px;
    color: #8998aa;
    font-size: 15px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 43px 0 43px;
    color: var(--text);
    background: #fbfcfe;
    border: 1px solid #dfe6ef;
    border-radius: 9px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.input-wrapper input::placeholder {
    color: #a3afbd;
    font-size: 11px;
}

.input-wrapper input:focus {
    background: #fff;
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(36, 74, 117, .09);
}

.password-toggle {
    position: absolute;
    left: 9px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #7d8da1;
    background: transparent;
    border: 0;
    border-radius: 6px;
}

.password-toggle:hover {
    color: var(--navy);
    background: #edf2f9;
}

.login-button {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #fff;
    background: linear-gradient(110deg, var(--navy-light), var(--navy-dark));
    border: 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 5px 13px rgba(23, 54, 93, .17);
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.login-button:hover {
    filter: brightness(1.08);
    box-shadow: 0 7px 18px rgba(23, 54, 93, .22);
    transform: translateY(-1px);
}

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

.login-button i {
    color: var(--gold);
    font-size: 14px;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #f0f3f7;
    color: #8997a8;
    font-size: 10px;
}

.login-security i {
    color: #b08b43;
}

.login-footer {
    position: relative;
    z-index: 1;
    margin-top: 23px;
    color: #8794a5;
    font-size: 10px;
    text-align: center;
    line-height: 2.2;
}

.login-footer span {
    display: block;
}

@media (max-width: 480px) {
    .login-page {
        padding: 22px 14px;
    }

    .login-card {
        padding: 29px 22px 23px;
        border-radius: 14px;
    }

    .brand-emblem {
        width: 58px;
        height: 58px;
        font-size: 25px;
    }

    .login-brand h1 {
        font-size: 22px;
    }

    .login-heading h2 {
        font-size: 16px;
    }
}

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