:root {
    --np-primary: #087ff5;
    --np-secondary: #00b8ff;
    --np-dark: #03152f;
    --np-dark-2: #061d3d;
    --np-text: #172033;
    --np-muted: #718096;
    --np-border: #e5eaf1;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--np-dark);
}

body {
    overflow: hidden;
}

/* =========================================
           LAYOUT PRINCIPAL
        ========================================= */

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(0, 168, 255, 0.1),
            transparent 35%
        ),
        linear-gradient(135deg, #020d20 0%, #03152f 45%, #06234a 100%);
}

/* =========================================
           PAINEL ESQUERDO
        ========================================= */

.brand-panel {
    position: relative;
    width: 58%;
    min-height: 100vh;
    overflow: hidden;
}

.brand-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(2, 13, 32, 0.1) 0%,
        rgba(2, 13, 32, 0.05) 60%,
        rgba(2, 13, 32, 0.65) 100%
    );
}

.brand-content {
    position: relative;
    z-index: 2;

    height: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 55px 65px;
}

.brand-logo {
    width: 190px;
    max-width: 45%;
    height: auto;
}

.brand-message {
    max-width: 570px;
    margin-bottom: 35px;
}

.brand-message .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;

    color: #6ed8ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand-message .eyebrow::before {
    content: "";
    display: block;

    width: 32px;
    height: 2px;

    background: linear-gradient(90deg, var(--np-secondary), var(--np-primary));
}

.brand-message h1 {
    margin: 0 0 18px;

    color: #fff;

    font-size: clamp(38px, 4vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
}

.brand-message h1 span {
    background: linear-gradient(90deg, #ffffff, #55d6ff);

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-message p {
    max-width: 500px;

    margin: 0;

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

    font-size: 16px;
    line-height: 1.7;
}

.brand-footer {
    display: flex;
    align-items: center;
    gap: 18px;

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

    font-size: 12px;
}

.brand-footer .line {
    width: 45px;
    height: 1px;

    background: rgba(0, 190, 255, 0.55);
}

/* =========================================
           PAINEL LOGIN
        ========================================= */

.login-panel {
    position: relative;

    width: 42%;
    min-height: 100vh;

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

    padding: 40px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(0, 155, 255, 0.08),
            transparent 40%
        ),
        #f7f9fc;
}

.login-container {
    width: 100%;
    max-width: 430px;
}

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

.mobile-logo {
    display: none;
    width: 150px;
    margin: 0 auto 35px;
}

/* =========================================
           LOGIN HEADER
        ========================================= */

.login-header {
    margin-bottom: 32px;
}

.login-header .welcome {
    display: block;

    margin-bottom: 8px;

    color: var(--np-primary);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.login-header h2 {
    margin: 0 0 10px;

    color: var(--np-text);

    font-size: 31px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.login-header p {
    margin: 0;

    color: var(--np-muted);

    font-size: 14px;
    line-height: 1.6;
}

/* =========================================
           FORM
        ========================================= */

.form-group {
    margin-bottom: 22px;
}

.form-label {
    margin-bottom: 8px;

    color: #273449;

    font-size: 13px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    color: #98a4b5;

    font-size: 15px;

    pointer-events: none;

    transition: 0.2s ease;
}

.form-control {
    height: 52px;

    padding: 0 48px;

    border: 1px solid var(--np-border);
    border-radius: 12px;

    background: #fff;

    color: var(--np-text);

    font-size: 14px;

    box-shadow: 0 2px 8px rgba(15, 35, 65, 0.025);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-control::placeholder {
    color: #a7b0bd;
}

.form-control:hover {
    border-color: #cbd5e1;
}

.form-control:focus {
    border-color: var(--np-primary);

    background: #fff;

    box-shadow: 0 0 0 4px rgba(8, 127, 245, 0.09);

    outline: none;
}

.input-wrapper:focus-within .input-icon {
    color: var(--np-primary);
}

.password-toggle {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    padding: 5px;

    background: transparent;

    color: #8b98aa;

    cursor: pointer;

    transition: 0.2s ease;
}

.password-toggle:hover {
    color: var(--np-primary);
}

/* =========================================
           OPÇÕES
        ========================================= */

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 4px 0 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #697586;

    font-size: 13px;

    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;

    accent-color: var(--np-primary);

    cursor: pointer;
}

.forgot-password {
    color: var(--np-primary);

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

    text-decoration: none;

    transition: 0.2s ease;
}

.forgot-password:hover {
    color: #005fc4;
}

/* =========================================
           BOTÃO
        ========================================= */

.btn-login {
    position: relative;

    width: 100%;
    height: 54px;

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

    border: 0;
    border-radius: 12px;

    background: linear-gradient(135deg, #087ff5 0%, #0068d9 100%);

    color: #fff;

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

    box-shadow: 0 8px 20px rgba(8, 127, 245, 0.22);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);

    box-shadow: 0 12px 26px rgba(8, 127, 245, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    font-size: 13px;

    transition: transform 0.2s ease;
}

.btn-login:hover i {
    transform: translateX(3px);
}

/* =========================================
           SEGURANÇA
        ========================================= */

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 25px;

    color: #8a96a7;

    font-size: 11px;
}

.security-info i {
    color: #19a974;
}

/* =========================================
           COPYRIGHT
        ========================================= */

.login-footer {
    margin-top: 38px;

    text-align: center;

    color: #9aa5b4;

    font-size: 11px;
    line-height: 1.6;
}

.login-footer strong {
    color: #687589;
    font-weight: 600;
}

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

@media (max-width: 1100px) {
    .brand-panel {
        width: 50%;
    }

    .login-panel {
        width: 50%;
    }

    .brand-content {
        padding: 45px;
    }

    .brand-message h1 {
        font-size: 44px;
    }
}

@media (max-width: 850px) {
    body {
        overflow: auto;
    }

    .login-page {
        min-height: 100vh;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        width: 100%;
        min-height: 100vh;

        padding: 30px 24px;

        background:
            linear-gradient(rgba(3, 21, 47, 0.96), rgba(3, 21, 47, 0.96)),
            url("{{ asset('assets/img/a_clean_modern_corporate_tech_background_wallpa.png') }}");

        background-size: cover;
        background-position: center;
    }

    .login-container {
        max-width: 440px;
    }

    .mobile-logo {
        display: block;
    }

    .login-header {
        text-align: center;
    }

    .login-header h2 {
        color: #fff;
    }

    .login-header p {
        color: rgba(255, 255, 255, 0.65);
    }

    .login-header .welcome {
        color: #4fcfff;
    }

    .form-label {
        color: rgba(255, 255, 255, 0.82);
    }

    .form-control {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.08);

        color: #fff;

        backdrop-filter: blur(10px);
    }

    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.42);
    }

    .form-control:focus {
        border-color: #159cff;

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

        color: #fff;
    }

    .input-icon {
        color: rgba(255, 255, 255, 0.45);
    }

    .input-wrapper:focus-within .input-icon {
        color: #4fcfff;
    }

    .password-toggle {
        color: rgba(255, 255, 255, 0.55);
    }

    .remember-me {
        color: rgba(255, 255, 255, 0.62);
    }

    .forgot-password {
        color: #4fcfff;
    }

    .security-info {
        color: rgba(255, 255, 255, 0.45);
    }

    .login-footer {
        color: rgba(255, 255, 255, 0.38);
    }

    .login-footer strong {
        color: rgba(255, 255, 255, 0.6);
    }
}

@media (max-width: 480px) {
    .login-panel {
        padding: 25px 20px;
    }

    .mobile-logo {
        width: 135px;
        margin-bottom: 30px;
    }

    .login-header {
        margin-bottom: 27px;
    }

    .login-header h2 {
        font-size: 27px;
    }

    .login-header p {
        font-size: 13px;
    }

    .form-options {
        align-items: flex-start;
        gap: 10px;
    }

    .forgot-password {
        text-align: right;
    }
}

/* =========================================
           ACESSIBILIDADE
        ========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
