body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 18px;
    background: #f4f7ff;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    display: none;
}

body::before {
    content: none;
}

body::after {
    content: none;
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 34px 30px 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(219, 227, 246, 0.95);
    box-shadow: 0 14px 30px rgba(17, 31, 76, 0.08);
    backdrop-filter: blur(16px);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(36, 81, 209, 0.16), rgba(255, 255, 255, 0.9), rgba(243, 198, 35, 0.16));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
}

.login-brand img {
    display: none;
}

.login-brand__text {
    min-width: 0;
}

.login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(36, 81, 209, 0.08);
    color: #2451d1;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-card h2 {
    margin: 0;
    font-weight: 800;
    color: #152142;
    letter-spacing: -0.04em;
    font-size: 2rem;
}

.login-subtitle {
    margin: 8px 0 0;
    color: #66779c;
    font-size: 0.98rem;
    line-height: 1.6;
}

.form-group {
    width: 100%;
    margin-bottom: 16px;
    position: relative;
}

.form-control {
    width: 100%;
    min-height: 56px;
    padding: 14px 46px 14px 46px;
    border-radius: 18px;
    border: 1px solid #d8e0f2;
    font-size: 0.98rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    background: #ffffff;
    color: #17203a;
}

.form-control::placeholder {
    color: #90a0c2;
}

.form-control:focus {
    border-color: rgba(36, 81, 209, 0.48);
    box-shadow: 0 0 0 4px rgba(36, 81, 209, 0.10);
}

.form-group .fa {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #2451d1;
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #17203a;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 15px 18px;
    background: linear-gradient(135deg, #2451d1, #4d79ee);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 8px 18px rgba(36, 81, 209, 0.14);
}

.btn-login:hover,
.btn-login:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(36, 81, 209, 0.16);
}

.login-card .error-message,
.login-card .alert {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.94rem;
    line-height: 1.55;
    text-align: left;
}

.login-card .error-message {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #be123c;
}

.login-card .alert-success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.login-meta {
    margin-top: 18px;
    color: #7b8aa9;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
}

.login-meta strong {
    color: #152142;
}

.login-actions {
    margin-top: 14px;
    text-align: center;
}

.login-link {
    color: #2451d1;
    font-weight: 700;
    text-decoration: none;
}

.login-link:hover,
.login-link:focus {
    color: #173a9f;
    text-decoration: underline;
}

.login-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.login-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid #d8e0f2;
    border-radius: 18px;
    background: #ffffff;
    color: #17203a;
    cursor: pointer;
    font-weight: 600;
}

.login-choice input {
    margin: 0;
    accent-color: #2451d1;
}

.fab-help {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    font-size: 1.7rem;
    box-shadow: 0 12px 22px rgba(22, 163, 74, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fab-help:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(22, 163, 74, 0.20);
}

@media (max-width: 640px) {
    body {
        padding: 18px 14px;
    }

    .login-card {
        padding: 26px 20px 22px;
        border-radius: 24px;
    }

    .login-card::before {
        border-radius: 24px;
    }

    .login-card h2 {
        font-size: 1.8rem;
    }

    .login-brand img {
        display: none;
    }

    .login-choice-grid {
        grid-template-columns: 1fr;
    }
}
