/* ================================
SOFTBEX LOGIN V2
**Autor Jorge Prado Braz
**Licenca Pbbits
================================ */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    position: relative;
    min-height: 100dvh;
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #0f2027, #1B3563, #224abe);
    overflow: hidden;
}

/* efeito luz animada */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.25), transparent 70%);
    top: -150px;
    left: -150px;
    animation: moveLight 8s infinite alternate ease-in-out;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

/* segunda luz */
body::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: moveLight2 10s infinite alternate ease-in-out;
    pointer-events: none;
    opacity: 0.4;
    z-index: 0;
}

@keyframes moveLight {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 100px);
    }
}

@keyframes moveLight2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-80px, -80px);
    }
}

.hero-block h2 {

    font-size: 60px;
    /* antes 40 */

    font-weight: 900;

    line-height: 1.08;

    letter-spacing: -1px;

    margin: 0;

    max-width: 700px;

    text-shadow:
        0 0 30px rgba(255, 255, 255, 0.04);
}

.hero-block span {

    color: #ffc107;

    text-shadow:
        0 0 18px rgba(255, 193, 7, 0.35);
}

.hero-title {
    font-size: 44px;
    /* 🔥 maior impacto */
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero-title span {
    color: #ffc107;
    text-shadow: 0 0 12px rgba(255, 193, 7, 0.4);
}

.hero-subtitle {
    margin-top: 15px;
    opacity: 0.75;
    max-width: 420px;
    font-size: 15px;
}

.hero-features {
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.hero-features li {
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.85;

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

    transition: all 0.3s ease;
}

.hero-features li:hover {
    transform: translateX(6px);
    opacity: 1;
}

.hero-features i {
    color: #ffc107;
    font-size: 16px;
}

.login-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* 🔥 chave */
    height: 100dvh;
    padding: 0;
    gap: 0;
    z-index: 2;
}

/* lado esquerdo */
.left-wrapper {
    position: relative;

    max-width: 620px;
    /* antes 500 */

    display: flex;
    flex-direction: column;

    gap: 65px;

    animation: fadeLeft 1s ease;

    z-index: 2;
}

.brand-logo {

    font-size: 52px;
    /* antes 34 */

    font-weight: 900;

    letter-spacing: 4px;

    margin-bottom: 12px;

    opacity: 0.98;

    line-height: 1;
}

.brand-logo span {
    color: #ffc107;

    text-shadow: 0 0 12px rgba(255, 193, 7, 0.5);
}

.brand-tagline {

    margin-top: 10px;

    font-size: 17px;

    opacity: 0.72;

    letter-spacing: 0.6px;

    max-width: 500px;

    line-height: 1.7;
}

.login-left {
    position: relative;
    background: linear-gradient(135deg, #1B3563, #224abe);
    background: transparent;
    flex: 1;
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;

    background: radial-gradient(circle, rgba(255, 193, 7, 0.12), transparent 70%);

    top: 30%;
    left: 20%;

    filter: blur(60px);
    /* 🔥 glow bonito em vez de mancha */
    z-index: 0;
}

.login-left::before {
    content: '';
    position: absolute;

    width: 600px;
    height: 600px;

    background: radial-gradient(circle, rgba(255, 193, 7, 0.15), transparent 70%);

    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
}

.login-left-content {
    position: relative;
    max-width: 480px;
    text-align: left;
    animation: fadeLeft 1s ease;
    z-index: 2;
}

.login-left-content h2 {
    font-size: 32px;
    font-weight: 700;
}

.login-left-content span {
    color: #ffc107;
}

.login-left-content p {
    margin-top: 10px;
    opacity: 0.8;
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-list {

    display: grid;

    grid-template-columns: repeat(2, minmax(220px, 1fr));

    gap: 18px;

    margin-top: 10px;
}

.feature-list div {

    display: flex;
    align-items: center;

    padding: 16px 18px;

    border-radius: 18px;

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

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

    backdrop-filter: blur(10px);

    font-size: 15px;

    font-weight: 600;

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

    transition: all 0.3s ease;
}

.feature-list div:hover {

    transform: translateY(-4px);

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

    border-color: rgba(255, 193, 7, 0.2);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 193, 7, 0.08);
}

.trust-badge {

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

    width: fit-content;

    padding: 14px 22px;

    border-radius: 50px;

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

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

    backdrop-filter: blur(12px);

    font-size: 14px;

    font-weight: 600;

    color: rgba(255, 255, 255, 0.78);

    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.03);
}

.trust-badge i {
    color: #ffc107;
    font-size: 16px;
}

/* lado direito */
.login-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 20px;
}

.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* =========================
   LOGIN BOX
========================= */

.login-box {
    width: 100%;
    max-width: 520px;
    /* antes 420px */

    padding: 42px;
    padding-top: 50px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);

    border-radius: 22px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(255, 193, 7, 0.06);

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

    color: #fff;

    transition: all 0.3s ease;
}

/* nome softbex opcional */
.brand-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
    background: linear-gradient(90deg, #ffffff, #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow: hidden;
}

/* amarelo */
.brand-title span {
    color: #ffc107;
}

/* flash effect */
.brand-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;

    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.5),
            rgba(255, 193, 7, 0.5),
            transparent);

    transform: skewX(-20deg);
    opacity: 0;
}

/* ativar */
.brand-title.flash::before {
    animation: softbexFlash 2.5s ease forwards;
}

@keyframes softbexFlash {
    0% {
        left: -60%;
        opacity: 0;
    }

    30% {
        opacity: 0.8;
    }

    60% {
        opacity: 1;
    }

    100% {
        left: 110%;
        opacity: 0;
    }
}

/* container do input */
.input-field {
    position: relative;
    height: 52px;
    overflow: hidden;
}

/* input */
.input-field input {
    width: 100%;
    height: 100%;

    padding: 0 50px 0 46px;

    border-radius: 12px;

    border: none;

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

    color: #fff;

    font-size: 15px;
    font-weight: 500;

    display: flex;
    align-items: center;

    transition: all 0.25s ease;
}

.input-field input:focus {
    transform: scale(1.02);
}

.input-field input:hover {
    background: rgba(255, 255, 255, 0.15);
}

.checkbox-container {
    display: flex;
    align-items: center;
    /* 🔥 resolve alinhamento */
    gap: 8px;
    cursor: pointer;
}

.checkbox-container input:checked+.checkmark+.checkbox-label {
    color: #ffc107;
    font-weight: 500;
}

.checkbox-container:hover .checkbox-label {
    color: rgba(255, 255, 255, 0.9);
}

/* remove comportamento estranho do label */
.checkbox-container input {
    margin: 0;
}

/* texto */
.checkbox-label {
    font-size: 14px;
    line-height: 1;
    /* 🔥 evita desalinhamento */
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.25s ease;
}

.options {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* esconder checkbox original */
.options input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 18px;
    height: 18px;

    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.5);

    background: transparent;

    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

/* hover */
.options input[type="checkbox"]:hover {
    border-color: #ffc107;
}

/* checked */
.options input[type="checkbox"]:checked {
    background: #ffc107;
    border-color: #ffc107;
}

/* check icon */
.options input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-size: 12px;
    color: #1B3563;
}

/* ícone esquerdo */
.input-icon {
    position: absolute;
    left: 16px;

    height: 100%;
    display: flex;
    align-items: center;
    /* 🔥 chave */
    justify-content: center;

    color: #ffc107;
    font-size: 18px;
}

/* olho alinhado */
.toggle-password {
    position: absolute;
    top: 0;
    right: 12px;

    height: 100%;
    width: 44px;

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

    cursor: pointer;

    color: rgba(255, 255, 255, 0.5);
    transition: all 0.25s ease;
    user-select: none;
}

/* ícone */
.toggle-password i {
    font-size: 18px;
    opacity: 0.8;
    transition: all 0.25s ease;
}

/* hover */
.toggle-password:hover {
    color: #ffc107;
}

/* 🔥 estado ativo (mostrar password) */
.toggle-password.active {
    color: #ffc107;
}

/* glow suave quando ativo */
.toggle-password.active i {
    filter: drop-shadow(0 0 4px rgba(255, 193, 7, 0.6));
}

/* focus bonito */
.input-field input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.input-field:focus-within .input-icon,
.input-field:focus-within .toggle-password {
    color: #ffc107;
}

.submit-btn {
    width: 100%;

    padding: 14px;

    border-radius: 50px;

    border: none;

    font-size: 15px;
    font-weight: 700;

    background: linear-gradient(135deg, #ffc107, #ffdb4d);

    color: #1B3563;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);

    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* FOOTER */
.softbex-footer {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;

    pointer-events: none;

    opacity: 0;
    animation: footerFade 2s ease forwards;
    /* 🔥 fade-in */
    animation-delay: 1s;
    /* aparece depois do login */
}

/* conteúdo */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);

    transition: all 0.3s ease;
}

/* branding */
.footer-brand {
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
    /* 🔥 glow suave */
}

/* amarelo */
.footer-brand span {
    color: #ffc107;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
    animation: subtlePulse 3s infinite ease-in-out;
}

/* hover (desktop) */
.softbex-footer:hover .footer-content {
    color: rgba(255, 255, 255, 0.7);
}

/* animação fade */
@keyframes footerFade {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes subtlePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* =========================
   TIMER SOFTBEX PRO
========================= */

#timer {
    font-size: 11px;
    opacity: 0.45;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* estado de aviso */
#timer.warning {
    color: #ffc107;
    opacity: 1;
    font-weight: 600;
    animation: softPulse 1.2s infinite;
}

/* animação suave */
@keyframes softPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ================================
   RESPONSIVE LOGIN
================================ */

.device-hero {
    display: none;
}

/* =========================
   ESCONDER BADGES
========================= */

.badge-mobile,
.badge-tablet {
    display: none !important;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    /* mostrar apenas mobile */
    .badge-mobile {
        display: inline-flex !important;
    }

    .badge-tablet {
        display: none !important;
    }

    body {
        overflow-y: auto;
    }

    .login-container {

        min-height: 100dvh;
        height: auto;

        display: flex;
        flex-direction: column;

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

        padding: 25px 14px;

        overflow-x: hidden;
    }

    .login-right {

        width: 100%;
        max-width: 100%;

        display: flex;
        flex-direction: column;

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

        overflow-x: hidden;
    }

    .login-box {

        width: 100%;
        max-width: 100%;

        padding: 28px 22px;

        border-radius: 20px;

        box-sizing: border-box;
    }

    .login-title {
        font-size: 24px;
    }

    .brand-title {
        font-size: 24px;
    }

    .input-field {
        height: 50px;
    }

    .input-field input {
        font-size: 15px;
    }

    .submit-btn {

        padding: 14px;

        font-size: 15px;
    }

    .options {
        font-size: 14px;
    }

    .softbex-footer {

        position: relative;

        margin-top: 18px;

        width: 100%;

        display: flex;
        justify-content: center;

        text-align: center;
    }

    .footer-content {

        width: 100%;

        justify-content: center;

        padding: 0 10px;

        gap: 6px;

        text-align: center;
    }

    /* =========================
       DEVICE HERO
    ========================= */

    .device-hero {

        width: 100%;

        display: flex !important;

        flex-direction: column;

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

        text-align: center;

        margin-bottom: 18px;

        animation: fadeDown 0.8s ease;
    }

    /* badge container */
    .device-badge {
        margin-bottom: 14px;
    }

    /* base badge */
    .device-badge span {

        align-items: center;
        gap: 8px;

        padding: 9px 18px;

        border-radius: 50px;

        background: rgba(255, 193, 7, 0.12);

        border: 1px solid rgba(255, 193, 7, 0.25);

        color: #ffc107;

        font-size: 12px;
        font-weight: 700;

        letter-spacing: 0.5px;

        backdrop-filter: blur(10px);

        box-shadow:
            0 0 20px rgba(255, 193, 7, 0.08);
    }

    .device-badge i {
        font-size: 14px;
    }

    /* logo */
    .device-hero h2 {

        margin: 0;

        font-size: 30px;
        font-weight: 900;

        letter-spacing: 2px;

        color: #fff;

        text-shadow:
            0 0 20px rgba(255, 255, 255, 0.12);
    }

    .device-hero h2 span {

        color: #ffc107;

        text-shadow:
            0 0 14px rgba(255, 193, 7, 0.45);
    }

    /* subtítulo */
    .device-hero p {

        margin-top: 10px;

        max-width: 320px;

        font-size: 13px;

        line-height: 1.5;

        color: rgba(255, 255, 255, 0.72);
    }
}

/* =========================
   TABLET
========================= */

@media (min-width: 769px) and (max-width: 991px) {

    /* mostrar apenas tablet */
    .badge-tablet {
        display: inline-flex !important;
    }

    .badge-mobile {
        display: none !important;
    }

    body {
        overflow-y: auto;
    }

    .login-container {

        min-height: 100dvh;
        height: auto;

        display: flex;
        flex-direction: column;

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

        padding: 30px 24px;

        overflow-x: hidden;
    }

    .login-right {

        width: 100%;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;
    }

    .login-box {

        width: 100%;

        max-width: 620px;

        padding: 42px 36px;

        border-radius: 24px;

        box-sizing: border-box;
    }

    .login-title {
        font-size: 26px;
    }

    .brand-title {
        font-size: 26px;
    }

    .input-field {
        height: 52px;
    }

    .input-field input {
        font-size: 15px;
    }

    .submit-btn {

        padding: 14px;

        font-size: 15px;
    }

    .device-hero {

        width: 100%;

        display: flex !important;

        flex-direction: column;

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

        text-align: center;

        margin-bottom: 24px;

        animation: fadeDown 0.8s ease;
    }

    .device-badge {
        margin-bottom: 16px;
    }

    .device-badge span {

        align-items: center;
        gap: 8px;

        padding: 10px 20px;

        border-radius: 50px;

        background: rgba(255, 193, 7, 0.12);

        border: 1px solid rgba(255, 193, 7, 0.25);

        color: #ffc107;

        font-size: 13px;
        font-weight: 700;

        letter-spacing: 0.5px;

        backdrop-filter: blur(10px);

        box-shadow:
            0 0 20px rgba(255, 193, 7, 0.08);
    }

    .device-badge i {
        font-size: 15px;
    }

    .device-hero h2 {

        margin: 0;

        font-size: 38px;

        font-weight: 900;

        letter-spacing: 2px;

        color: #fff;
    }

    .device-hero h2 span {

        color: #ffc107;

        text-shadow:
            0 0 14px rgba(255, 193, 7, 0.45);
    }

    .device-hero p {

        margin-top: 12px;

        max-width: 420px;

        font-size: 14px;

        line-height: 1.6;

        color: rgba(255, 255, 255, 0.72);
    }

    .softbex-footer {

        position: relative;

        margin-top: 24px;

        width: 100%;

        display: flex;
        justify-content: center;

        text-align: center;
    }
}

/* =========================
   TELEMÓVEIS PEQUENOS
========================= */

@media (max-width: 420px) {

    .login-box {
        padding: 24px 18px;
    }

    .login-title {
        font-size: 22px;
    }

    .input-field {
        height: 48px;
    }

    .submit-btn {
        padding: 13px;
    }
}