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

body {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #0f172a;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-layout {
    width: 100%;
    max-width: 1100px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-column {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.right-column {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.robot-wrapper {
    padding-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.robot-wrapper::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 185%;
    max-width: 270px;
    height: 30px;
    background: radial-gradient(
        ellipse at center,
        rgba(5, 8, 15, 0.25) 10%,
        rgba(7, 11, 20, 0) 70%
    );
    pointer-events: none;
}

.robot-image {
    max-height: 620px;
    max-width: 100%;
    object-fit: contain;
}

.login-ring-wrapper {
    position: relative;
    width: 460px;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring i {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
    transition: 0.5s;
}

.ring i:nth-child(1) {
    border-color: rgba(14, 165, 233, 0.8);
    animation: ring-rotate-1 9s linear infinite;
}

.ring i:nth-child(2) {
    border-color: rgba(20, 184, 166, 0.8);
    animation: ring-rotate-2 11s linear infinite;
}

.ring i:nth-child(3) {
    border-color: rgba(244, 63, 94, 0.7);
    animation: ring-rotate-3 13s linear infinite;
}

@keyframes ring-rotate-1 {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(180deg) scale(1.02); }
    100% { transform: rotate(360deg); }
}

@keyframes ring-rotate-2 {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(-200deg) scale(1.04); }
    100% { transform: rotate(-360deg); }
}

@keyframes ring-rotate-3 {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(220deg) scale(1.06); }
    100% { transform: rotate(360deg); }
}

.login-box {
    position: relative;
    width: 78%;
    padding: 0.4rem 0.85rem 0.2rem;
    border-radius: 1.25rem;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.login-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0a8f8b;
    margin-bottom: 0.45rem;
}

.login-lead {
    font-size: 0.86rem;
    line-height: 1.35;
    color: #334155;
    margin-bottom: 0.9rem;
}

.login-brand {
    margin-top: 1.15rem;
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    letter-spacing: 0.18em;
    line-height: 1;
    background: linear-gradient(90deg, #0abab5 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.flash-messages {
    margin-bottom: 0.75rem;
    text-align: left;
    font-size: 0.85rem;
}

.flash {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.flash-error {
    background: #fee2e2;
    color: #b91c1c;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f9fafb;
}

.form-group input:focus {
    border-color: #0ABAB5;
    box-shadow: 0 0 0 1px rgba(10, 186, 181, 0.2);
    background-color: #ffffff;
}

.btn-primary {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg, #0ABAB5, #0EA5E9);
    color: #ffffff;
    margin-top: 0.25rem;
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
    opacity: 0.95;
}

.login-links {
    margin-top: 0.7rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.light-link {
    color: #64748b;
    text-decoration: none;
}

.light-link:hover {
    color: #0ABAB5;
}

@media (max-width: 900px) {
    .login-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .right-column {
        display: none;
    }

    .login-ring-wrapper {
        width: 340px;
        height: 340px;
    }
}
