:root {
    --green-main:  #adcc4f;
    --green-dark:  #2E6D2E;
    --green-soft:  #E7F4E8;
    --border-soft: #E3EDE3;
    --text-main:   #222;
    --text-muted:  #777;
    --bg-page:     #F5F8F5;
}
body{
    font-family: "Open Sans", sans-serif;
}
header .wrap{
    background-color: #fff;
}
.admin_page .logo{
    margin-left: 0;
    text-align: left;
}
.logo{
    display: block;
    margin: 0 auto;
    text-align: center;
}
header.fixed{
    position: static;
}
header .logo a{
    text-decoration: none;
}
header .logo img{
    max-width: 200px;
    height: 50px;
}
.language-switcher{
    text-align: right;
    margin-bottom: 0;
}
.language-switcher li{
    display: inline-block;
    margin-left: 10px;
}
.language-switcher li a{
    text-decoration: none;
    color: #000;
    font-size: 18px;
}
.language-switcher li.current a{
    color: var(--green-main);
}
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 16px 60px;
    background: radial-gradient(circle at top left, #f2fbf2 0, #f5f8f5 35%, #edf3ef 100%);
}

.auth-logo img {
    max-width: 220px;
    margin-bottom: 32px;
}

.auth-grid {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.auth-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 28px 32px 30px;
    box-shadow: 0 16px 45px rgba(0,0,0,0.06);
    border: 1px solid var(--border-soft);
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.auth-field input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #D6D6D6;
    padding: 11px 12px;
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    background-color: #FAFAFA;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--green-main);
    box-shadow: 0 0 0 3px rgba(74,159,74,0.15);
    background-color: #FFFFFF;
}

.auth-password {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-password input {
    padding-right: 40px;
}

.auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    padding: 4px;
    width: auto;
}

.auth-password-toggle:hover {
    color: var(--green-dark);
}

.auth-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 6px 0 4px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-checkbox input {
    width: auto;
    height: auto;
}

.auth-btn {
    margin-top: 8px;
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 11px 18px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.auth-btn-primary {
    background-color: var(--green-main);
    color: #fff;
    box-shadow: 0 8px 18px rgba(74,159,74,0.35);
}

.auth-btn-primary:hover {
    background-color: var(--green-dark);
    box-shadow: 0 10px 24px rgba(46,109,46,0.4);
    transform: translateY(-1px);
}

.auth-links {
    margin-top: 10px;
    font-size: 13px;
    text-align: right;
}

.auth-links a {
    color: var(--green-dark);
    text-decoration: none;
}
.auth-links a:hover {
    text-decoration: underline;
}

.auth-error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #D43636;
}
.dashboard-item a {
    text-decoration: none;
    color: #000;
}
/* Мобильная адаптация */
@media (max-width: 992px) {
    .auth-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 22px 18px 24px;
        border-radius: 18px;
    }
    .auth-title {
        font-size: 24px;
    }
}
