/* ======================================== */
/* RESET */
/* ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    font-family: "Segoe UI", sans-serif;

    background: #0f172a;

    overflow-x: hidden;
}

/* ======================================== */
/* PAGE */
/* ======================================== */

.login-page {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #111827 50%,
            #1e293b 100%
        );
}

/* ======================================== */
/* OVERLAY */
/* ======================================== */

.login-overlay {

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(37,99,235,0.25),
            transparent 35%
        );

    pointer-events: none;
}

/* ======================================== */
/* CONTAINER */
/* ======================================== */

.login-container {

    width: 100%;

    max-width: 450px;

    position: relative;

    z-index: 2;
}

/* ======================================== */
/* CARD */
/* ======================================== */

.login-card {

    background: rgba(255,255,255,0.06);

    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 24px;

    padding: 45px 35px;

    box-shadow:
        0 10px 40px rgba(0,0,0,0.35);

    animation: fadeIn 0.5s ease;
}

/* ======================================== */
/* HEADER */
/* ======================================== */

.login-header {

    text-align: center;

    margin-bottom: 35px;
}

.login-logo {

    width: 90px;

    margin-bottom: 20px;
}

.login-header h1 {

    color: white;

    font-size: 34px;

    margin-bottom: 12px;

    font-weight: 700;
}

.login-header p {

    color: #94a3b8;

    font-size: 16px;
}

/* ======================================== */
/* FORM */
/* ======================================== */

.login-form {

    display: flex;

    flex-direction: column;

    gap: 22px;
}

.form-group {

    display: flex;

    flex-direction: column;
}

.form-group label {

    color: #e2e8f0;

    margin-bottom: 10px;

    font-size: 14px;

    font-weight: 600;
}

.form-group input {

    height: 54px;

    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.04);

    padding: 0 18px;

    color: white;

    font-size: 16px;

    transition: 0.2s;
}

.form-group input::placeholder {

    color: #94a3b8;
}

.form-group input:focus {

    outline: none;

    border-color: #2563eb;

    background: rgba(255,255,255,0.06);

    box-shadow:
        0 0 0 4px rgba(37,99,235,0.15);
}

/* ======================================== */
/* BUTTON */
/* ======================================== */

.login-button {

    height: 56px;

    border: none;

    border-radius: 14px;

    background: #2563eb;

    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;

    margin-top: 10px;
}

.login-button:hover {

    transform: translateY(-2px);

    background: #1d4ed8;
}

/* ======================================== */
/* ANIMATION */
/* ======================================== */

@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(20px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}

/* ======================================== */
/* MOBILE */
/* ======================================== */

@media (max-width: 600px) {

    .login-card {

        padding: 35px 25px;

        border-radius: 20px;
    }

    .login-header h1 {

        font-size: 28px;
    }

    .login-logo {

        width: 75px;
    }

    .form-group input {

        height: 50px;

        font-size: 15px;
    }

    .login-button {

        height: 52px;

        font-size: 15px;
    }

}
/* ======================================== */
/* LOGIN ERROR */
/* ======================================== */

.login-error {

    display: flex;

    align-items: center;

    gap: 10px;

    background: rgba(239,68,68,0.08);

    border: 1px solid rgba(239,68,68,0.25);

    color: #ff6b6b;

    padding: 14px 16px;

    border-radius: 14px;

    margin-bottom: 22px;

    font-size: 14px;

    font-weight: 600;

    animation: shakeError 0.3s ease;
}

.login-error::before {

    content: "⚠";

    font-size: 16px;
}

/* ANIMAÇÃO */

@keyframes shakeError {

    0% {
        transform: translateX(-5px);
    }

    25% {
        transform: translateX(5px);
    }

    50% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}