/* ============================================================
   1. FONT
   2. RESET
   3. BODY
   4. BACKGROUND SHAPES
   5. LOGIN CONTAINER
   6. LOGO
   7. TABS
   8. FORMS
   9. FORM SECTIONS
   10. INPUT GROUP
   11. INPUT ICONS
   12. INPUTS
   13. PASSWORD TOGGLE
   14. FORM OPTIONS
   15. BUTTON
   16. ERROR MESSAGE
   17. POSTAL CODE
   18. PASSWORD STRENGTH
   19. PASSWORD RULES
   20. VALIDATION STATES
   21. VALIDATION ICONS
   22. REMOVE PASSWORD DEFAULT ICON
   23. CURSOR PERSONALIZADO
   24. ANIMATIONS
   25. RESPONSIVE
============================================================ */

/* ============================================================
   1. FONT
============================================================ */

@font-face {

    font-family: 'Museo500';

    src: url('../fonts/Museo500-Regular-webfont.eot');

    src:
    url('../fonts/Museo500-Regular-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Museo500-Regular-webfont.woff') format('woff'),
    url('../fonts/Museo500-Regular-webfont.ttf') format('truetype'),
    url('../fonts/Museo500-Regular-webfont.svg#Museo500') format('svg');

    font-weight: normal;
    font-style: normal;
}


/* ============================================================
   2. RESET
============================================================ */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/* ============================================================
   3. BODY
============================================================ */

body {

    min-height: 100vh;

    display: block;

    padding: 20px;

    font-family: 'Museo500';

    background:
        linear-gradient(
            135deg,
            #f5f9ff,
            #edf6ff
        );

    overflow-y: auto;
    overflow-x: hidden;

    position: relative;
}


/* ============================================================
   4. BACKGROUND SHAPES
============================================================ */

.bg-shape {

    position: absolute;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.25;

    animation: float 8s ease-in-out infinite;

    z-index: 0;
}


.shape1 {

    width: 350px;
    height: 350px;

    background: #0093D0;

    top: -120px;
    left: -120px;
}


.shape2 {

    width: 300px;
    height: 300px;

    background: #1B3F94;

    bottom: -100px;
    right: -100px;

    animation-delay: 2s;
}


/* ============================================================
   5. LOGIN CONTAINER
============================================================ */

.login-container {

    width: 100%;
    max-width: 560px;

    margin: 40px auto;

    background: rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.5);

    border-radius: 30px;

    padding: 50px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08);

    position: relative;

    z-index: 2;

}


main.login-container {
    flex: none !important;
}

/* ============================================================
   6. LOGO
============================================================ */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    color: var(--text-primary);

    font-size: 26px;
    font-weight: bold;

    transition: 0.3s;
}

.logo span {

    font-family: 'Museo500';

    font-size: 1.8rem;

    color: #1B3F94;

    white-space: nowrap;

    display: block;

    line-height: 1;
}

.logo img {
    width: 35px !important;
    height: 35px !important;
    object-fit: contain;
}

.logo:hover {
    color: var(--accent);
    transform: scale(1.05);
}

header.shrink .logo-img {
    width: 40px;
}

.left {
    display: flex;
    align-items: center;
    gap: 10px;
}




/* ============================================================
   7. TABS
============================================================ */

.tabs {

    display: flex;

    background: #eef4ff;

    border-radius: 14px;

    padding: 5px;

    margin-bottom: 40px;
}


.tab-btn {

    flex: 1;

    padding: 14px;

    border: none;

    background: transparent;

    border-radius: 10px;

    font-family: 'Museo500';

    font-size: 1rem;

    cursor: pointer;

    transition: 0.3s;
}


.tab-btn.active {

    background: white;

    color: #1B3F94;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);
}


/* ============================================================
   8. FORMS
============================================================ */

.form {

    display: none;

    animation: fade 0.4s ease;
}


.form.active {

    display: block;
}


.form h2 {

    font-size: 2rem;

    color: #1B3F94;

    margin-bottom: 35px;

    text-align: center;
}


/* ============================================================
   9. FORM SECTIONS
============================================================ */

.form-section-title {

    font-size: 1rem;

    color: #1B3F94;

    margin:
        38px 0 20px;

    padding-bottom: 10px;

    border-bottom:
        1px solid #dbe5f3;
}


/* ============================================================
   10. INPUT GROUP
============================================================ */

.input-group {

    position: relative;

    margin-bottom: 30px;
}


/* ============================================================
   11. INPUT ICONS
============================================================ */

.input-group i {

    position: absolute;

    left: 18px;

    top: 30px;

    transform: translateY(-50%);

    color: #0093D0;

    transition: 0.3s;
}


/* ============================================================
   12. INPUTS
============================================================ */

.input-group input {

    width: 100%;

    height: 60px;

    padding:
        0 55px 0 50px;

    border: 2px solid #dbe5f3;

    border-radius: 18px;

    background: white;

    font-family: 'Museo500';

    font-size: 1rem;

    transition: 0.3s;
}


.input-group input:focus {

    outline: none;

    border-color: #0093D0;

    box-shadow:
        0 0 0 4px rgba(0, 147, 208, 0.12);
}


/* ============================================================
   13. PASSWORD TOGGLE
============================================================ */

.toggle-password {

    position: absolute;

    right: 18px;

    top: 30px;

    transform: translateY(-50%);

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 5;
}


.toggle-password i {

    position: static !important;

    transform: none !important;

    color: #0093D0;
}


/* ============================================================
   14. FORM OPTIONS
============================================================ */

.form-options {

    display: flex;
    justify-content: flex-end;

    margin-bottom: 30px;
}


.form-options a {

    text-decoration: none;

    color: #1B3F94;

    transition: 0.3s;
}


.form-options a:hover {

    color: #0093D0;
}


/* ============================================================
   15. BUTTON
============================================================ */

.main-btn {

    width: 100%;

    padding: 18px;

    border: none;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #1B3F94,
            #0093D0
        );

    color: white;

    font-family: 'Museo500';

    font-size: 1rem;

    cursor: pointer;

    transition: 0.3s;
}


.main-btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0, 147, 208, 0.3);
}


/* ============================================================
   16. ERROR MESSAGE
============================================================ */

.error-message {

    font-size: 0.82rem;

    color: #ff4d4d;

    margin-top: 8px;

    margin-left: 8px;

    line-height: 1.3;

    display: none;
}


.input-group.error .error-message {

    display: block;
}


/* ============================================================
   17. POSTAL CODE
============================================================ */

.postal-wrapper {

    margin-bottom: 25px;
}


.postal-wrapper label {

    display: block;

    font-size: 0.95rem;

    color: #1B3F94;

    margin-bottom: 10px;
}


.postal-group {

    display: flex;
    align-items: center;
    gap: 10px;
}


.postal-group span {

    color: #1B3F94;

    font-size: 1.2rem;
}


.postal-input {

    width: 100%;

    height: 58px;

    border: 2px solid #dbe5f3;

    border-radius: 16px;

    text-align: center;

    font-family: 'Museo500';

    font-size: 1rem;

    transition: 0.3s;
}


.postal-input:focus {

    outline: none;

    border-color: #0093D0;

    box-shadow:
        0 0 0 4px rgba(0, 147, 208, 0.12);
}


/* ============================================================
   18. PASSWORD STRENGTH
============================================================ */

.password-strength {

    margin: -5px 0 18px;
}

.strength-bar {

    width: 0%;

    height: 8px;

    border-radius: 20px;

    background: #ff4d4d;

    transition: 0.3s;
}

.strength-text {

    display: block;

    margin-top: 8px;

    font-size: 0.9rem;

    color: #4d5b75;
}


/* ============================================================
   19. PASSWORD RULES
============================================================ */

.password-rules {

    margin-bottom: 25px;

    display: flex;
    flex-direction: column;

    gap: 8px;
}

.password-rules p {

    font-size: 0.9rem;

    transition: 0.3s;
}


/* ============================================================
   20. VALIDATION STATES
============================================================ */

.input-group.success input {

    border-color: #1ecb70;

    box-shadow:
        0 0 0 4px rgba(30, 203, 112, 0.12);
}

.input-group.error input {

    border-color: #ff4d4d;

    box-shadow:
        0 0 0 4px rgba(255, 77, 77, 0.12);
}


/* ============================================================
   21. VALIDATION ICONS
============================================================ */

.input-group.success::after,
.input-group.error::after {

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    position: absolute;

    right: 50px;

    top: 30px;

    transform: translateY(-50%);

    font-size: 0.85rem;
}

.input-group.success::after {

    content: "\f00c";

    color: #1ecb70;
}

.input-group.error::after {

    content: "\f00d";

    color: #ff4d4d;
}


/* ============================================================
   22. REMOVE PASSWORD DEFAULT ICON
============================================================ */

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {

    display: none;
}

input::-webkit-credentials-auto-fill-button {

    visibility: hidden;

    display: none !important;

    pointer-events: none;

    position: absolute;

    right: 0;
}


/* ============================================================
   23. ANIMATIONS
============================================================ */

@keyframes fade {

    from {

        opacity: 0;
        transform: translateY(10px);
    }

    to {

        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {

        transform: translateY(0);
    }

    50% {

        transform: translateY(20px);
    }
}


/* ============================================================
   24. CURSOR PERSONALIZADO
============================================================ */

/* =========================
   24.1 CURSOR
========================= */

.cursor {

    position: fixed;

    width: 10px;
    height: 10px;

    background: #1B3F94;

    border-radius: 50%;

    pointer-events: none;

    z-index: 999999999;

    transform: translate(-50%, -50%);

    transition:
        width .2s,
        height .2s,
        background .2s;

    box-shadow:
        0 0 10px #1B3F94,
        0 0 25px rgba(27, 63, 148, 0.5);
}


/* =========================
   24.2 CURSOR RING
========================= */

.cursor-ring {

    position: fixed;

    width: 34px;
    height: 34px;

    border: 1.5px solid #1B3F94;

    border-radius: 50%;

    pointer-events: none;

    z-index: 999999999;

    transform: translate(-50%, -50%);

    transition:
        width .25s,
        height .25s;
}


/* =========================
   24.3 TRAIL
========================= */

.trail {

    position: fixed;

    width: 6px;
    height: 6px;

    background: #0093D0;

    border-radius: 50%;

    pointer-events: none;

    z-index: 999999999;

    transform: translate(-50%, -50%);

    opacity: 0.8;

    animation: trailFade 0.6s linear forwards;
}

@keyframes trailFade {

    to {

        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(0.3);
    }
}


/* =========================
   24.4 PARTÍCULAS
========================= */

.particle {

    position: fixed;

    width: 8px;
    height: 8px;

    background: #0093D0;

    border-radius: 50%;

    pointer-events: none;

    z-index: 999999999;

    transform: translate(-50%, -50%);

    animation: explode 0.8s ease-out forwards;

    box-shadow:
        0 0 10px #1B3F94,
        0 0 20px #1B3F94;
}

@keyframes explode {

    to {

        transform:
            translate(
                calc(-50% + var(--x)),
                calc(-50% + var(--y))
            )
            scale(0.2);

        opacity: 0;
    }
}


/* ============================================================
   25. RESPONSIVE
============================================================ */

@media (max-width: 768px) {

    .login-container {

        max-width: 95%;

        padding: 40px 30px;
    }

    .form h2 {

        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {

    body {

        padding-top: 80px;
    }

    .login-container {

        padding: 35px 25px;
    }

    .form h2 {

        font-size: 1.7rem;
    }

    .logo span {

        font-size: 1.8rem;
    }

    .postal-group {

        gap: 6px;
    }

    .password-rules p {

        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {

    .login-container {

        padding: 25px 18px;

        border-radius: 20px;
    }

    .tabs {

        flex-direction: column;

        gap: 6px;
    }

    .tab-btn {

        width: 100%;
    }

    .input-group input {

        height: 55px;

        font-size: 0.95rem;
    }

    .main-btn {

        padding: 16px;
    }
}


/* ============================================================
   CURSOR
============================================================ */

* {

    cursor: none !important;
}

.cursor,
.cursor-ring {

    pointer-events: none !important;
}

/* ===============================
   POPUP MENSAGENS
================================ */

.popup-container {

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.35);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition: .3s;

    z-index: 9999;
}


.popup-container.active {

    opacity: 1;
    visibility: visible;
}



.popup-box {

    background: white;

    width: 350px;
    padding: 30px;

    border-radius: 20px;

    text-align: center;

    box-shadow: 0 15px 40px rgba(0,0,0,.25);

    animation: popupShow .3s ease;

}



@keyframes popupShow {

    from {
        transform: scale(.8);
    }

    to {
        transform: scale(1);
    }

}



.popup-icon {

    font-size: 45px;

    margin-bottom: 10px;
}



.popup-box h3 {

    color: #1B3F94;

}



.popup-box p {

    color: #555;

}



.popup-box button {

    margin-top: 20px;

    border: none;

    padding: 10px 30px;

    border-radius: 25px;

    background: #0093D0;

    color: white;

    cursor: pointer;

}



.popup-box button:hover {

    background: #1B3F94;

}


    /* 14.2 CURSOR - DESATIVAR NO MOBILE */
    @media (max-width: 900px) {

        .cursor,
        .cursor-ring,
        .trail,
        .particle {
            display: none !important;
        }

        /* restaurar cursor normal */
        * {
            cursor: auto !important;
        }
    }