/* LOGIN PAGE v2.0 — IXDM */

body {
    background-color: #071a0c;
    background-image:
        radial-gradient(ellipse at 15% 80%, rgba(0, 102, 51, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(0, 70, 35, 0.4) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 40, 20, 0.6) 0%, transparent 70%),
        linear-gradient(170deg, #040f06 0%, #0c2411 45%, #112d16 75%, #071508 100%);
    background-size: cover;
    background-attachment: fixed;
}

.content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.content::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,102,51,0.02) 2px,
            rgba(0,102,51,0.02) 4px
        );
    pointer-events: none;
    z-index: 0;
}

.content-box {
    width: calc(100% - 2rem);
    margin: 0 auto;
    flex: 1;
    position: relative;
    z-index: 1;
}

.box {
    width: calc(100% - 2rem);
    max-width: 360px;
    padding: 2.5rem 1.75rem;
    position: relative;
    margin-bottom: 48px;
    background: rgba(5, 20, 10, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 51, 0.3);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255,255,255,0.06);
    color: var(--light-one);
}

.box-header {
    padding: 0 0 1.5rem 0;
    border-bottom: 1px solid rgba(0, 102, 51, 0.25);
    margin-bottom: 0.25rem;
}

.box-header img {
    /* logo original, sem filtro */
}

h1 {
    width: fit-content;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    margin: 1rem auto;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

form {
    width: 100%;
    padding-top: 16px;
}

.inputs {
    width: 100%;
    border-radius: 10px;
    background: var(--light-one);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.inputs:focus-within {
    border-color: rgba(0, 102, 51, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.18);
}

.inputs span {
    cursor: pointer;
}

#inputs-login {
    margin-bottom: 12px;
}

#login {
    width: calc(100% - 16px);
    padding-left: 16px;
    border: none !important;
    height: 46px;
    color: var(--dark-five);
    background-color: transparent;
}

#password {
    width: calc(100% - 16px);
    padding-left: 16px;
    border: none !important;
    height: 46px;
    color: var(--dark-five);
    background-color: transparent;
}

#login::placeholder,
#password::placeholder {
    color: var(--light-six) !important;
}

.toggle-btn img {
    margin-right: 14px;
    user-select: none;
    opacity: 0.55;
    transition: opacity 0.2s;
}

.toggle-btn:hover img {
    opacity: 0.85;
}

#unlook {
    display: none;
}

.remember {
    width: 100%;
    margin: 18px 0;
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    gap: 8px;
}

.remember input[type=checkbox] {
    margin-right: 0;
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
}

.remember label {
    cursor: pointer;
}

input[type=submit] {
    width: 100% !important;
    padding: 0;
    height: 46px;
    border: none !important;
    background: linear-gradient(135deg, #006633 0%, #00a352 100%) !important;
    color: var(--light-one) !important;
    font-weight: 600;
    border-radius: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(0, 102, 51, 0.45);
}

input[type=submit]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 102, 51, 0.55);
}

input[type=submit]:active {
    transform: translateY(0);
    opacity: 1;
}

.forgot {
    width: 100%;
    margin-top: 22px;
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
}

.forgot a {
    cursor: pointer;
    transition: color 0.2s;
    color: rgba(255,255,255,0.4);
}

.forgot a:hover {
    color: rgba(255,255,255,0.75);
}

/* Autofill override */
input:autofill,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--dark-five) !important;
    transition: background-color 500000s ease-in-out 0s !important;
}

.box-msg {
    width: 100%;
    color: rgba(255,255,255,0.75);
    padding: 18px 0 0 0;
    text-align: center;
    display: none;
    font-size: 0.82rem;
}

.lds-ripple {
    position: relative;
    width: 46px;
    height: 0;
    overflow: hidden;
    transition: height 0.1s ease-out;
    display: none;
}

.lds-ripple div {
    position: absolute;
    border: 3px solid rgba(255,255,255,0.6);
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes lds-ripple {
    0% { top:20px;left:20px;width:0;height:0;opacity:0; }
    4.9% { top:20px;left:20px;width:0;height:0;opacity:0; }
    5% { top:20px;left:20px;width:0;height:0;opacity:1; }
    100% { top:0px;left:0px;width:40px;height:40px;opacity:0; }
}

.box-footer {
    width: 100%;
    height: fit-content;
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.5px;
    font-size: 0.7rem;
    white-space: nowrap;
}

/* POPUP OVERRIDES */
.popup {
    border: none !important;
}
.popup-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow: hidden !important;
}
.popup-header-count {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.popup-btn-close {
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
}

@media (max-width: 480px) {
    .box {
        padding: 2rem 1.25rem;
        border-radius: 16px;
        max-width: 100%;
    }
}
