/* LOGIN / REGISTRATION SHARED LAYOUT */

.login-page {
    position: relative;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    overflow: hidden;
}

.login-page-bg {
    position: absolute;
    inset: 0;
    /* Относительный путь от компонента до /run/images/static/loginbg.png */
    background: url("../../../../images/static/loginbg.png") center center / cover no-repeat;
    z-index: -1;
}

.login-page-inner {
    width: 100%;
    max-width: 640px;
    display: flex;
    justify-content: center;
}

.login-card {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 520px;
}

.login-title {
    font-family: 'Molot', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.08em;
    margin: 0 0 2rem 0;
}

.login-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #222;
}

.login-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    font-size: 0.9375rem;
}

.login-input:focus {
    outline: none;
    border-color: #3a75c4;
    box-shadow: 0 0 0 1px rgba(58, 117, 196, 0.2);
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.login-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-submit {
    display: inline-block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background-color: #faeb50;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.login-submit:hover {
    background-color: #f9df38;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.login-secondary {
    display: inline-block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
}

.login-secondary:hover {
    background-color: #f9fafb;
}

.login-link-small {
    font-size: 0.8125rem;
    color: #3a75c4;
    text-decoration: none;
}

.login-link-small:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .login-page {
        padding: 3rem 1rem;
    }
}

