main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.main-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 44px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 36px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: loginIn var(--dur-slow) var(--ease-out) both;
}

@keyframes loginIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.title {
    width: 100%;
    text-align: center;
}

.title h1 {
    font-size: calc(30 / 16 * 1rem);
    font-weight: 500;
}

.rainbow-text {
    background: linear-gradient(90deg, #4285f4, #0943a3);
    background-size: 400% 400%;

    -webkit-animation: RainbowAnimation 3s ease infinite;
    -moz-animation: RainbowAnimation 3s ease infinite;
    animation: RainbowAnimation 3s ease infinite;

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user {
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--bg);
    transition: border-color var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out),
                background-color var(--dur-base) var(--ease-out);
}

.user:focus-within {
    border-color: var(--blue);
    background-color: var(--surface);
    box-shadow: var(--ring);
}

.user i {
    padding: 0 0 0 14px;
    font-size: calc(18 / 16 * 1rem);
    color: var(--muted);
}

.user input {
    width: 100%;
    padding: 14px;
    border: none;
    outline: none;
    background: transparent;
    font-size: calc(16 / 16 * 1rem);
    font-weight: 500;
}

.login-button {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.login-button input {
    width: 100%;
    padding: 14px;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: calc(18 / 16 * 1rem);
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(90deg, #4285f4, #0943a3);
    background-size: 400% 400%;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.35);
    transition: transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);

    -webkit-animation: RainbowAnimation 3s ease infinite;
    -moz-animation: RainbowAnimation 3s ease infinite;
    animation: RainbowAnimation 3s ease infinite;
}

.login-button input:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.45);
}

.login-button input:active {
    transform: scale(0.98);
}

.login-button a {
    font-size: calc(14 / 16 * 1rem);
    margin-top: 20px;
    color: var(--muted);
    text-align: center;
}

.login-error {
    width: 100%;
    margin-top: 15px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--danger-soft);
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: calc(14 / 16 * 1rem);
    animation: loginIn var(--dur-base) var(--ease-out) both;
}

.login-error::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: calc(16 / 16 * 1rem);
    flex-shrink: 0;
}

@-webkit-keyframes RainbowAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@-moz-keyframes RainbowAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@keyframes RainbowAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
