/* =========================================
   LAYOUT DE LOGIN
========================================= */
.even-columns {
    width: 100%;
    min-height: 100vh;
}

.hero,
.form {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* =========================================
   PAINEL ESQUERDO
========================================= */
.hero {
    display: none;
    justify-content: space-between;
    overflow: hidden;
    padding: 4rem;
    color: white;
    background: linear-gradient(135deg, 
        var(--color-primary-400) 0%, 
        var(--color-primary-500) 20%,
        var(--color-primary-400) 70%, 
        var(--color-primary-300) 100%
    );
}

.grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-header,
.hero-content,
.hero-footer {
    position: relative;
    z-index: 1;
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-secondary-300);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}
.security-badge svg {
    margin-right: 0.375rem;
}

.hero-content {
    width: 100%;
    max-width: 36rem;
    margin: auto 0 auto 0;
    padding: 3rem 0 3rem 0;
}
.hero-content h1 {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.875rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.015em;
}
.text-gradient {
    color: var(--color-secondary);
    font-size: 2.4rem;
    background: linear-gradient(90deg,
        var(--color-secondary-600) 0%,
        var(--color-secondary-300) 60%,
        var(--color-secondary) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    margin-bottom: 2.5rem;
    color: var(--color-primary-100);
    font-size: 1rem;
    line-height: 1.625;
    font-weight: 400;
}

.hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-primary-100);
    font-size: 0.75rem;
    line-height: 1rem;
}

.hero-footer-links {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
.hero-footer-links a {
    transition: color 0.2s ease;
}
.hero-footer-links a:hover {
    color: var(--color-secondary-400);
}

/* =========================================
   FORM DE LOGIN
========================================= */
.form {
    width: 100%;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: #F5f5f5;
}

.form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 0 auto;
}

.mobile-security {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1rem;
}
.mobile-security i {
    margin-right: 0.25rem;
}

/* container do formulario */
.login-container {
    width: 100%;
    max-width: 22rem;
    margin: auto;
    padding: 2rem 0 2rem 0;
}
.login-heading {
    margin-bottom: 2rem;
}
.login-heading h2 {
    margin-bottom: 0;
    color: var(--color-primary-300);
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}
.login-heading p {
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-label {
    display: none;
    margin-bottom: 0.5rem;
    color: var(--color-primary-300);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =========================================
   INPUTS COM ÍCONES
========================================= */
.input-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-primary-50);
    border-radius: 0.75rem;
    background-color: white;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}
.input-field:hover,
.input-field:focus-within {
    border-color: var(--color-primary-100);
    box-shadow: 0 0 0 4px var(--color-primary-50);
}

.input-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    color: var(--color-primary-100);
    pointer-events: none;
}
.input-icon i {
    font-size: 1rem;
}

.input-field input {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 0;
    outline: none;
    border-radius: 0.75rem;
    background-color: transparent;
    color: var(--text-color);
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.input-field input::placeholder {
    color: var(--color-neutral-300);
    opacity: 1;
}



.forgot-password {
    float: right;
    display: block;
    margin-top: 1.125rem;
    color: var(--color-primary-300);
}
.forgot-password:hover {
    color: var(--color-secondary-600);
}

/* =========================================
   LEMBRAR-ME
========================================= */

.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.25rem;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #475569;
}

.remember-label input {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin: 0;
    border-radius: 0.25rem;
    accent-color: #f59e0b;
    cursor: pointer;
}

.remember-label span {
    margin-left: 0.625rem;
    color: #475569;
    font-size: 0.75rem;
    line-height: 1rem;
    transition: color 0.2s ease;
}

.remember-label:hover span {
    color: #1e293b;
}

/* =========================================
   BOTÃO DE LOGIN
========================================= */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border:3px solid var(--color-primary-200);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--color-primary-200), var(--color-primary-400));
    color: white;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease;
}
.btn i {
    font-size: 0.75rem;
}
.btn:hover,
.btn:focus-visible {
    background: var(--color-primary-300);
    box-shadow: none;
    border: 3px solid var(--color-primary-100);
}

.btn--orange {
    color: white;
    border-color: var(--color-secondary-400);
    background: linear-gradient(135deg, var(--color-secondary-600) 0%, var(--color-secondary-400) 50%, var(--color-secondary-600) 100%);
}
.btn--orange:hover,
.btn--orange:focus-visible {
    background: var(--color-secondary-300);
    box-shadow: none;
    border: 3px solid var(--color-secondary-100);
}


/* =========================================
   RODAPÉ MOBILE
========================================= */

.mobile-footer {
    width: 100%;
    max-width: 28rem;
    margin-right: auto;
    margin-left: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.mobile-footer p {
    margin-bottom: 0;
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1rem;
}

/* =========================================
   ANIMAÇÕES
========================================= */

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    20%,
    60% {
        transform: translateX(-4px);
    }
    40%,
    80% {
        transform: translateX(4px);
    }
}

/* =========================================
   RESPONSIVIDADE
========================================= */

@media (max-width: 639px) {
    .form {
        padding: 1.5rem;
    }

    .login-heading h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .hero-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .text-gradient {
        font-size: 2rem;
    }
}

@media (min-width: 640px) {
    .form {
        padding: 3rem;
    }

    .login-heading h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

@media (min-width: 1024px) {
    body {
        display: flex;
    }

    .hero {
        display: flex;
        width: 50%;
        padding: 4rem;
    }

    .form {
        width: 50%;
        padding: 4rem;
    }

    .mobile-security,
    .mobile-footer {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.25;
    }

    .hero-content p {
        font-size: 1.125rem;
        line-height: 1.625;
    }
}

@media (min-width: 1280px) {
    .hero {
        padding: 4rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.25;
    }
}

/* esconder hero */
@media (max-width: 1023px) {
    .hero {
        display: none !important;
    }

    .form {
        width: 100% !important;
        min-height: 100vh;
    }
}