:root {
    --green: #7cb342;
    --green-light: #c5e1a5;
    --green-pale: #e8f5e9;
    --blue: #4a8fe7;
    --blue-light: #bbdefb;
    --blue-pale: #e3f2fd;
    --gold: #f0c040;
    --bg: #faf9f6;
    --bg-warm: #f5f3ee;
    --text: #2d2d2d;
    --text-mid: #6b7b6b;
    --text-light: #9ca3a0;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset for this page only */
.lc-login-page {
    min-height: calc(100vh - 72px - 280px); /* Высота экрана минус хедер и футер */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Background Shapes */
.lc-login-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lc-bg-circle {
    position: absolute;
    border-radius: 50%;
}

.lc-bg-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 143, 231, 0.08), transparent 70%);
    top: -100px;
    right: -100px;
}

.lc-bg-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 179, 66, 0.08), transparent 70%);
    bottom: -100px;
    left: -100px;
}

/* Card */
.lc-login-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 2;
    margin-top: 76px;
}

.lc-login-card {
    background: var(--white);
    border-radius: 28px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    animation: lcFadeUp 0.6s ease both;
}

@keyframes lcFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.lc-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.lc-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.lc-subtitle {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.5;
}

/* Form Fields */
.lc-field {
    margin-bottom: 20px;
}

.lc-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.lc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.lc-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--white);
    border: 2px solid #e8e5e0;
    border-radius: 14px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

    .lc-input:focus {
        border-color: var(--green);
        background: var(--white);
    }

    .lc-input::placeholder {
        color: var(--text-light);
    }

    .lc-input.is-error {
        border-color: #ef4444;
        background: #fef2f2;
    }

/* Toggle Password Button */
.lc-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    display: flex;
    transition: color 0.2s;
}

    .lc-toggle-pass:hover {
        color: var(--green);
    }

/* Validation */
.lc-validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    list-style: none;
    text-align: left;
}

    .lc-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

.lc-error {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 6px;
    min-height: 16px;
}

/* Submit Button */
.lc-btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

    .lc-btn-submit:hover {
        background: #689f38;
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(124, 179, 66, 0.3);
    }

    .lc-btn-submit:active {
        transform: translateY(0);
    }

    .lc-btn-submit.loading {
        pointer-events: none;
        opacity: 0.8;
    }

        .lc-btn-submit.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: lcSpin 0.6s linear infinite;
            margin: -10px 0 0 -10px;
        }

@keyframes lcSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.lc-login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-mid);
}

    .lc-login-footer a {
        color: var(--green);
        font-weight: 700;
        text-decoration: none;
    }

        .lc-login-footer a:hover {
            text-decoration: underline;
        }

/* Responsive */
@media (max-width: 480px) {
    .lc-login-card {
        padding: 32px 24px;
    }

    .lc-title {
        font-size: 28px;
    }
}
