* {
    box-sizing: border-box;
}

:root {
    --auth-green: #168300;
    --auth-green-dark: #0b6f00;
    --auth-green-light: #eef8eb;
    --auth-text: #111827;
    --auth-muted: #6b7280;
    --auth-border: #dfe8df;
    --auth-bg: #f5faf3;
    --auth-white: #ffffff;
    --auth-danger-bg: #fee2e2;
    --auth-danger-text: #991b1b;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(22, 131, 0, .12), transparent 32%),
        var(--auth-bg);
    color: var(--auth-text);
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 30px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--auth-white);
    border: 1px solid rgba(22, 131, 0, .08);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 24px 65px rgba(15, 23, 42, .10);
}

.auth-card-register {
    max-width: 500px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 26px;
}

.logo-circle {
    width: 74px;
    height: 74px;
    margin: 0 auto 15px;
    border-radius: 23px;
    background: linear-gradient(135deg, var(--auth-green), var(--auth-green-dark));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 35px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(22, 131, 0, .24);
}

.auth-logo h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.auth-logo p {
    margin: 8px 0 0;
    color: var(--auth-muted);
    line-height: 1.5;
}

.auth-alert {
    background: var(--auth-danger-bg);
    color: var(--auth-danger-text);
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.4;
}

.auth-form label {
    display: block;
    font-weight: 850;
    margin: 15px 0 8px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--auth-border);
    background: #fbfdfb;
    border-radius: 16px;
    transition: .2s ease;
}

.auth-input-wrap:focus-within {
    border-color: var(--auth-green);
    box-shadow: 0 0 0 4px rgba(22, 131, 0, .10);
    background: #fff;
}

.auth-input-wrap > i {
    position: absolute;
    inset-inline-start: 15px;
    color: var(--auth-muted);
    pointer-events: none;
}

.auth-input-wrap input,
.auth-input-wrap textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--auth-text);
    padding: 15px 48px;
}

.auth-input-wrap textarea {
    min-height: 95px;
    resize: vertical;
    padding-top: 15px;
}

.password-toggle {
    position: absolute;
    inset-inline-end: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
}

.password-toggle:hover {
    background: var(--auth-green-light);
    color: var(--auth-green);
}

.auth-submit {
    width: 100%;
    margin-top: 23px;
    border: 0;
    background: linear-gradient(135deg, var(--auth-green), var(--auth-green-dark));
    color: #fff;
    border-radius: 17px;
    padding: 16px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(22, 131, 0, .20);
    transition: .2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(22, 131, 0, .26);
}

.auth-bottom {
    text-align: center;
    margin-top: 23px;
    color: var(--auth-muted);
}

.auth-bottom a {
    display: inline-block;
    margin-inline-start: 5px;
    color: var(--auth-green);
    font-weight: 900;
    text-decoration: none;
}

.auth-language {
    position: fixed;
    top: 18px;
    inset-inline-end: 18px;
    z-index: 100;
}

.auth-language-button {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--auth-border);
    background: rgba(255, 255, 255, .95);
    color: var(--auth-text);
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.auth-language-menu {
    position: absolute;
    top: calc(100% + 9px);
    inset-inline-end: 0;
    width: 170px;
    padding: 8px;
    border: 1px solid var(--auth-border);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .12);
    display: none;
}

.auth-language-menu.show {
    display: block;
}

.auth-language-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 11px;
    text-decoration: none;
    color: var(--auth-text);
    font-weight: 750;
}

.auth-language-menu a:hover,
.auth-language-menu a.active {
    background: var(--auth-green-light);
    color: var(--auth-green);
}

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .auth-input-wrap input,
html[dir="rtl"] .auth-input-wrap textarea {
    text-align: right;
}

@media (max-width: 560px) {
    .auth-page {
        align-items: flex-start;
        padding: 78px 14px 24px;
    }

    .auth-card {
        padding: 22px 18px;
        border-radius: 23px;
    }

    .auth-logo h1 {
        font-size: 25px;
    }

    .logo-circle {
        width: 66px;
        height: 66px;
        font-size: 31px;
    }

    .auth-language {
        top: 13px;
        inset-inline-end: 13px;
    }

    .auth-language-button {
        min-height: 39px;
        padding: 8px 11px;
    }
}