* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Tahoma, Arial, sans-serif;
}

body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 20%),
        radial-gradient(circle at bottom left, rgba(255, 174, 0, 0.08), transparent 22%),
        linear-gradient(135deg, #050505 0%, #0d0d0d 45%, #151515 100%);
    color: #ffffff;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 20px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
        linear-gradient(135deg, rgba(18,18,18,0.97), rgba(32,32,32,0.95));
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 0 18px 48px rgba(0,0,0,.45);
}

.lang-switch {
    display: flex;
    gap: 8px;
    direction: ltr;
    margin-bottom: 12px;
}

.lang-btn {
    min-width: 54px;
    height: 42px;
    border-radius: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #d7d7d7;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
}

.lang-btn.active {
    color: #111;
    background: linear-gradient(180deg, #f3dd94 0%, #d4af37 100%);
    border-color: rgba(212,175,55,0.40);
}

.logo-wrap {
    display: flex;
    justify-content: center;
    margin: 4px 0 8px;
}

.brand-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.brand-title {
    margin: 6px 0 4px;
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    color: #f6e2a7;
}

.brand-subtitle {
    margin: 0 0 14px;
    text-align: center;
    font-size: 18px;
    color: #d9d9d9;
}

.gold-line {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #836000 0%, #d4af37 45%, #f0d173 74%, #f0a61e 100%);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 14px;
}

.auth-tab {
    height: 52px;
    border-radius: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    color: #ddd;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
}

.auth-tab.active {
    color: #111;
    background: linear-gradient(180deg, #f8e8bb 0%, #d4af37 100%);
}

.alert-box {
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(160, 20, 20, 0.22);
    border: 1px solid rgba(255, 99, 99, 0.18);
    color: #ffe4e4;
    text-align: center;
    font-size: 14px;
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ededed;
}

.form-group input {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(212,175,55,0.16);
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 15px;
    padding: 0 14px;
    outline: none;
}

.form-group input::placeholder {
    color: #7b7b7b;
}

.form-group input:focus {
    border-color: rgba(212,175,55,0.55);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-left: 52px;
    padding-right: 14px;
}

body.ltr .password-field input {
    padding-right: 52px;
    padding-left: 14px;
}

.eye-btn {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(212,175,55,0.12);
    color: #f7df97;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.ltr .eye-btn {
    right: 10px;
    left: auto;
}

.eye-btn.is-open {
    background: rgba(212,175,55,0.24);
}

.eye-icon {
    font-size: 15px;
    line-height: 1;
}

.field-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #bfbfbf;
}

.submit-btn {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    color: #111;
    background: linear-gradient(90deg, #7a5a00 0%, #d4af37 42%, #f3d67b 74%, #f2a518 100%);
    box-shadow: 0 14px 28px rgba(212,175,55,0.16);
    margin-top: 8px;
}

.auth-footer {
    margin-top: 14px;
    text-align: center;
}

.auth-footer a {
    color: #f1d37a;
    text-decoration: none;
    font-size: 14px;
}

body.rtl {
    direction: rtl;
}

body.ltr {
    direction: ltr;
}

body.rtl .form-group label,
body.rtl .form-group input {
    text-align: right;
}

body.ltr .form-group label,
body.ltr .form-group input {
    text-align: left;
}

@media (max-width: 480px) {
    body.login-page {
        padding: 10px;
    }

    .auth-card {
        max-width: 100%;
        padding: 16px;
        border-radius: 18px;
    }

    .brand-logo {
        width: 72px;
        height: 72px;
    }

    .brand-title {
        font-size: 28px;
    }

    .brand-subtitle {
        font-size: 16px;
    }

    .auth-tabs {
        grid-template-columns: 1fr;
    }
}
.eye-svg {
    width: 18px;
    height: 18px;
    display: block;
}