* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at top left,
            rgba(43, 116, 255, 0.10),
            transparent 34%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(105, 70, 255, 0.08),
            transparent 34%
        ),
        #090d15;

    color: #f4f7fb;
}


.login-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;
}


.login-card {
    width: 100%;
    max-width: 440px;

    padding: 38px;

    background: #111722;

    border: 1px solid #202a38;
    border-radius: 18px;

    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.42);
}


.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;

    padding-bottom: 26px;
    margin-bottom: 30px;

    border-bottom: 1px solid #202a38;
}


.brand-logo {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;

    padding: 10px;

    background: #172235;

    border: 1px solid #26354c;
    border-radius: 12px;
}


.brand-bar {
    display: block;

    width: 6px;

    border-radius: 4px 4px 1px 1px;

    background: #3d8cff;
}


.brand-bar-1 {
    height: 12px;
}


.brand-bar-2 {
    height: 20px;
}


.brand-bar-3 {
    height: 28px;
}


.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.brand-text strong {
    font-size: 18px;
    font-weight: 800;

    letter-spacing: 1.5px;

    color: #ffffff;
}


.brand-text span {
    font-size: 12px;

    color: #8793a5;
}


.login-header {
    margin-bottom: 26px;
}


.login-header h1 {
    margin-bottom: 8px;

    font-size: 26px;
    font-weight: 750;

    color: #ffffff;
}


.login-header p {
    font-size: 14px;
    line-height: 1.55;

    color: #8d99aa;
}


.alert {
    width: 100%;

    padding: 12px 14px;
    margin-bottom: 18px;

    border-radius: 9px;

    font-size: 13px;
    line-height: 1.45;
}


.alert-error {
    color: #ffb8b8;

    background: rgba(220, 53, 69, 0.12);

    border: 1px solid rgba(220, 53, 69, 0.35);
}


.alert-success {
    color: #9ff0bb;

    background: rgba(39, 174, 96, 0.12);

    border: 1px solid rgba(39, 174, 96, 0.35);
}


.alert-warning {
    color: #ffe0a1;

    background: rgba(243, 156, 18, 0.12);

    border: 1px solid rgba(243, 156, 18, 0.35);
}


.alert-info {
    color: #abd1ff;

    background: rgba(61, 140, 255, 0.12);

    border: 1px solid rgba(61, 140, 255, 0.35);
}


.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.form-group label {
    font-size: 13px;
    font-weight: 600;

    color: #c4ccd8;
}


.form-group input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    border: 1px solid #293548;
    border-radius: 9px;

    outline: none;

    background: #0c121c;

    color: #ffffff;

    font-size: 15px;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}


.form-group input:hover {
    border-color: #35445b;
}


.form-group input:focus {
    border-color: #3d8cff;

    background: #0e1520;

    box-shadow:
        0 0 0 3px rgba(61, 140, 255, 0.12);
}


.form-group input::placeholder {
    color: #5e6978;
}


.password-wrapper {
    position: relative;
}


.password-wrapper input {
    padding-right: 50px;
}


.password-toggle {
    position: absolute;

    top: 50%;
    right: 9px;

    width: 34px;
    height: 34px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 7px;

    cursor: pointer;

    background: transparent;

    color: #8793a5;

    font-size: 17px;

    transition:
        color 0.18s ease,
        background 0.18s ease;
}


.password-toggle:hover {
    color: #ffffff;

    background: #182131;
}


.login-button {
    width: 100%;
    height: 50px;

    margin-top: 4px;

    border: 0;
    border-radius: 9px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #337ef2,
            #2869d8
        );

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    box-shadow:
        0 10px 26px rgba(39, 111, 225, 0.22);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}


.login-button:hover {
    transform: translateY(-1px);

    filter: brightness(1.06);

    box-shadow:
        0 13px 30px rgba(39, 111, 225, 0.30);
}


.login-button:active {
    transform: translateY(0);
}


.login-footer {
    margin-top: 28px;
    padding-top: 22px;

    border-top: 1px solid #202a38;

    text-align: center;
}


.login-footer span {
    font-size: 12px;

    color: #687486;
}


@media (max-width: 520px) {

    .login-page {
        padding: 20px 14px;
    }


    .login-card {
        padding: 28px 22px;

        border-radius: 14px;
    }


    .login-header h1 {
        font-size: 23px;
    }


    .brand-logo {
        width: 44px;
        height: 44px;
    }

}
