
.login-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 65px;
    height: 65px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 40, 55, 0.1);
    border: 1px solid rgba(255, 40, 55, 0.3);
    border-radius: 18px;
    color: var(--red-hi);
    font-size: 25px;
}

.login-header h1 {
    color: var(--txt);
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.login-field label {
    color: var(--txt);
    font-size: 13px;
    font-weight: 600;
}

.login-field input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--txt);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.25s ease;
}

.login-field input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 40, 55, 0.1);
}

.login-field input::placeholder {
    color: var(--muted);
}

.login-submit {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--red);
    border: none;
    border-radius: 9px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: 5px;
}

.login-submit:hover {
    background: var(--red-hi);
    box-shadow: 0 5px 20px rgba(255, 40, 55, 0.25);
    transform: translateY(-2px);
}

.login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.login-footer a {
    color: var(--red-hi);
    font-weight: 700;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-error,
.login-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: rgba(255, 40, 55, 0.08);
    border: 1px solid rgba(255, 40, 55, 0.25);
    color: var(--red-hi);
    font-size: 12px;
    line-height: 1.8;
}

.login-error p {
    margin: 0;
}

.login-messages {
    margin-bottom: 20px;
}

.login-message {
    margin-bottom: 8px;
}

.field-error {
    color: var(--red-hi);
    font-size: 11px;
}

@media (max-width: 520px) {
    .login-section {
        padding: 30px 15px;
    }

    .login-card {
        padding: 28px 22px;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .login-footer {
        flex-wrap: wrap;
    }
}

.login-help {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.login-field input {
    direction: ltr;
    text-align: right;
    letter-spacing: 1px;
}
