* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.24), transparent 34%),
        #0f1020;
    color: #ffffff;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(440px, 100%);
    padding: 28px;
    border-radius: 32px;
    background: rgba(18, 19, 39, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-logo {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 25px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.auth-brand h1 {
    margin: 0;
    font-size: 27px;
    font-weight: 950;
    letter-spacing: -1px;
}

.auth-brand span {
    color: #a8b7d8;
    font-size: 13px;
    font-weight: 700;
}

.auth-heading {
    margin-bottom: 22px;
}

.auth-heading span {
    display: inline-block;
    margin-bottom: 8px;
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-heading h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.8px;
}

.auth-heading p {
    margin: 0;
    color: #a8b7d8;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
}

.auth-alert {
    padding: 13px 14px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.24);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 850;
}

.auth-form {
    display: grid;
    gap: 15px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.auth-field input {
    width: 100%;
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 16, 32, 0.94);
    color: #ffffff;
    outline: none;
    font-size: 14px;
}

.auth-field input::placeholder {
    color: #64748b;
}

.auth-field input:focus {
    border-color: rgba(196, 181, 253, 0.58);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.24);
}

.auth-button {
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(124, 58, 237, 0.28);
}

.auth-footer {
    margin-top: 20px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 4px;
}

.auth-footer span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.auth-footer strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 480px) {
    .auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 22px;
        border-radius: 26px;
    }

    .auth-heading h2 {
        font-size: 24px;
    }
}

/* ===================================================
   IDENTIDADE LEVEMENTE - LOGIN
=================================================== */

.auth-page {
    background:
        radial-gradient(circle at top left, rgba(255, 213, 79, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(46, 125, 50, 0.20), transparent 38%),
        linear-gradient(135deg, #f8faf5 0%, #f1f8e9 46%, #fffde7 100%) !important;
}

.auth-card {
    border: 1px solid rgba(165, 214, 167, 0.65) !important;
    box-shadow: 0 28px 70px rgba(46, 125, 50, 0.14) !important;
}

.auth-logo {
    background: linear-gradient(135deg, #2e7d32, #4caf50) !important;
    box-shadow: 0 18px 34px rgba(46, 125, 50, 0.25) !important;
}

.auth-brand h1 {
    color: #143d19 !important;
}

.auth-brand span {
    color: #4f6f52 !important;
}

.auth-heading span {
    background: #fff8db !important;
    color: #8a6a00 !important;
}

.auth-heading h2 {
    color: #143d19 !important;
}

.auth-heading p {
    color: #5f715f !important;
}

.auth-field label {
    color: #143d19 !important;
}

.auth-field input:focus {
    border-color: #4caf50 !important;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.16) !important;
}

.auth-button {
    background: linear-gradient(135deg, #2e7d32, #4caf50) !important;
    box-shadow: 0 16px 30px rgba(46, 125, 50, 0.22) !important;
}

.auth-button:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

/* ===================================================
   LEVEMENTE - LOGIN CLARO / CONTRASTE AJUSTADO
=================================================== */

.auth-page {
    background:
        radial-gradient(circle at top left, rgba(255, 213, 79, 0.32), transparent 32%),
        radial-gradient(circle at bottom right, rgba(76, 175, 80, 0.24), transparent 38%),
        linear-gradient(135deg, #fbfff2 0%, #f1f8e9 46%, #fff8d6 100%) !important;
}

.auth-card {
    background: rgba(255, 255, 248, 0.96) !important;
    border: 1px solid rgba(165, 214, 167, 0.85) !important;
    box-shadow: 0 30px 75px rgba(46, 125, 50, 0.18) !important;
}

.auth-brand {
    border-bottom-color: rgba(46, 125, 50, 0.12) !important;
}

.auth-logo {
    background: linear-gradient(135deg, #2e7d32, #66bb6a) !important;
    box-shadow: 0 16px 34px rgba(46, 125, 50, 0.28) !important;
}

.auth-brand h1,
.auth-heading h2,
.auth-field label {
    color: #143d19 !important;
}

.auth-brand span,
.auth-heading p {
    color: #58745a !important;
}

.auth-heading span {
    background: #fff3bf !important;
    color: #6d5200 !important;
}

.auth-field input {
    background: #ffffff !important;
    border: 1px solid #cfe6d1 !important;
    color: #143d19 !important;
}

.auth-field input::placeholder {
    color: #8ca38d !important;
}

.auth-field input:focus {
    border-color: #43a047 !important;
    box-shadow: 0 0 0 4px rgba(67, 160, 71, 0.18) !important;
}

.auth-button {
    background: linear-gradient(135deg, #2e7d32, #4caf50) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(46, 125, 50, 0.25) !important;
}

.auth-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

/* ===================================================
   LEVEMENTE - LOGO IMAGEM NO LOGIN
=================================================== */

.auth-brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.auth-logo {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    box-shadow: none !important;
}

.auth-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 0 !important;
}

.auth-brand h1 {
    margin: 0 !important;
    line-height: 1.05 !important;
}

.auth-brand span {
    display: block !important;
    margin-top: 4px !important;
    line-height: 1.25 !important;
}

@media (max-width: 520px) {
    .auth-logo {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
    }
}