* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #f2f4f8;
    background:
        radial-gradient(circle at 50% 18%, rgba(139, 108, 255, 0.14), transparent 34%),
        #111318;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: min(410px, 100%);
    padding: 34px 34px 26px;
    border: 1px solid #414b60;
    border-radius: 18px;
    background: rgba(25, 31, 43, 0.94);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
}

.login-brand {
    position: relative;
    width: min(250px, 78%);
    aspect-ratio: 1;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-halo {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 104, 20, 0.20) 0%,
            rgba(255, 91, 16, 0.14) 32%,
            rgba(255, 76, 10, 0.05) 58%,
            transparent 75%
        );
    filter: blur(22px);
    pointer-events: none;
    animation: login-logo-halo 3.5s ease-in-out infinite;
}

.login-logo-ring {
    position: absolute;
    inset: 3%;
    border: 3px solid #101a2b;
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
    box-shadow:
        0 0 18px rgba(255, 104, 20, 0.28),
        0 0 34px rgba(255, 92, 15, 0.16);
    animation: login-logo-ring-glow 3.5s ease-in-out infinite;
}

.login-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 94%;
    height: 94%;
    object-fit: cover;
    object-position: center 3px;
    border-radius: 50%;
    outline: 3px solid #101a2b;
    outline-offset: -3px;
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.52),
        0 0 28px rgba(255, 104, 20, 0.30),
        0 -8px 35px rgba(255, 92, 15, 0.24);
    animation: robinhome-login-logo-glow 3.5s ease-in-out infinite;
}

@keyframes robinhome-login-logo-glow {
    0%, 100% {
        filter: brightness(1);
        box-shadow:
            0 20px 45px rgba(0, 0, 0, 0.52),
            0 0 28px rgba(255, 104, 20, 0.30),
            0 -8px 35px rgba(255, 92, 15, 0.24);
    }

    50% {
        filter: brightness(1.06);
        box-shadow:
            0 20px 45px rgba(0, 0, 0, 0.52),
            0 0 42px rgba(255, 104, 20, 0.55),
            0 -8px 50px rgba(255, 92, 15, 0.42);
    }
}

@keyframes login-logo-halo {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.72;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes login-logo-ring-glow {
    0%, 100% {
        box-shadow:
            0 0 18px rgba(255, 104, 20, 0.28),
            0 0 34px rgba(255, 92, 15, 0.16);
    }

    50% {
        box-shadow:
            0 0 28px rgba(255, 104, 20, 0.52),
            0 0 48px rgba(255, 92, 15, 0.30);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-logo,
    .login-logo-halo,
    .login-logo-ring {
        animation: none;
    }
}

.login-heading {
    text-align: center;
    margin-bottom: 24px;
}

.login-heading h1 {
    margin: 0 0 7px;
    font-size: 24px;
    font-weight: 700;
}

.login-heading p {
    margin: 0;
    color: #aeb4bf;
    font-size: 14px;
}

#loginForm label {
    display: block;
    margin: 0 0 7px;
    color: #d8dce4;
    font-size: 13px;
    font-weight: 600;
}

#loginForm input {
    width: 100%;
    height: 46px;
    margin: 0 0 17px;
    padding: 0 13px;
    border: 1px solid #414b60;
    border-radius: 9px;
    outline: none;
    background: #202633;
    color: #f0f2f5;
    font-size: 14px;
}

#loginForm input:focus {
    border-color: #8b6cff;
    box-shadow: 0 0 0 2px rgba(139, 108, 255, 0.15);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 66px !important;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 46px;
    padding: 0 13px;
    border: 0;
    background: transparent;
    color: #a78bfa;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.login-button {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #8b6cff, #6f54dc);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(111, 84, 220, 0.25);
}

.login-button:hover {
    filter: brightness(1.08);
}

.login-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.login-error {
    min-height: 18px;
    margin: -3px 0 12px;
    color: #ff8f9b;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.login-footer {
    margin-top: 22px;
    color: #727988;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 480px) {
    .login-page {
        padding: 16px;
    }

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