/* ============================================================
   LOGIN — страница входа (login.php)
   Карамельный стиль
   ============================================================ */

body.login-body {
    background: linear-gradient(135deg, #FAF0E2 0%, #F0DCC0 40%, #E3C39D 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    padding-top: 70px;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: calc(100vh - 70px);
}

.login-card {
    background: #FFF9F0;
    border: 2px solid #E8D5B8;
    border-radius: 24px;
    padding: 45px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(111, 78, 55, 0.18), 0 2px 8px rgba(111, 78, 55, 0.08);
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #D4A574, #C9955B, #A0722D);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}
.login-logo {
    font-size: 56px;
    margin-bottom: 12px;
    display: inline-block;
    animation: gentle-pulse 3s ease-in-out infinite;
}
@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
.login-title {
    font-size: 28px;
    font-weight: 800;
    color: #2C1810;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #A0722D, #6F4E37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-subtitle {
    color: #5D4037;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

.login-form-group {
    margin-bottom: 20px;
    position: relative;
}
.login-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4E342E;
    font-weight: 700;
    font-size: 14px;
}
.login-form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #D4C8B0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.25s;
    background: #FFFFFF;
    color: #2C1810;
    box-sizing: border-box;
}
.login-form-group input:focus {
    outline: none;
    border-color: #A0722D;
    background: #FFFAF0;
    box-shadow: 0 0 0 4px rgba(160, 114, 45, 0.15);
}
.login-form-group input::placeholder {
    color: #A89279;
}

/* Обёртка пароля */
.password-wrapper {
    position: relative;
}
.password-wrapper input {
    padding-right: 50px;
}
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.15s;
    color: #A0722D;
}
.password-toggle:hover {
    background: #FAF0E2;
    transform: translateY(-50%) scale(1.1);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 12px;
}
.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6F4E37;
    cursor: pointer;
    font-weight: 600;
}
.login-remember input {
    width: 18px;
    height: 18px;
    accent-color: #A0722D;
    cursor: pointer;
}
.login-forgot {
    color: #A0722D;
    font-weight: 700;
    text-decoration: none;
}
.login-forgot:hover {
    color: #6F4E37;
    text-decoration: underline;
}

.login-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    border-left: 4px solid;
}
.login-alert--error {
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
    color: #991B1B;
    border-color: #DC2626;
}
.login-alert--success {
    background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
    color: #166534;
    border-color: #22C55E;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #C9955B, #A0722D);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 25px rgba(160, 114, 45, 0.35);
    letter-spacing: 0.3px;
}
.login-btn:hover {
    background: linear-gradient(135deg, #D4A574, #C9955B);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(160, 114, 45, 0.45);
}
.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid #F0E5D2;
    color: #5D4037;
    font-size: 14px;
}
.login-footer a {
    color: #A0722D;
    font-weight: 700;
    text-decoration: none;
}
.login-footer a:hover {
    color: #6F4E37;
    text-decoration: underline;
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5D4037;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 14px;
    text-decoration: none;
}
.login-back:hover {
    color: #A0722D;
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 22px;
        border-radius: 18px;
    }
    .login-logo {
        font-size: 44px;
    }
    .login-title {
        font-size: 24px;
    }
    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-logo,
    .login-btn,
    .password-toggle {
        animation: none !important;
        transition: none !important;
    }
}
