
*{
margin:0;
padding:0;
box-sizing:border-box;
}

:root{
--bg:#07120f;
--bg2:#0b1915;
--card:#0e211b;
--card2:#112820;
--green:#38d39f;
--green-dark:#1ca878;
--gold:#d7b56d;
--white:#f6faf8;
--muted:#9baea7;
--border:rgba(255,255,255,.09);
--danger:#ef6b6b;
}

body{
font-family:"DM Sans",sans-serif;
background:var(--bg);
color:var(--white);
min-height:100vh;
}

a{
text-decoration:none;
color:inherit;
}

button,
input{
font-family:inherit;
}

.login-page{
min-height:100vh;
display:grid;
grid-template-columns:1fr 1fr;
}

/* ================= VISUAL SIDE ================= */

.visual-side{
position:relative;
min-height:100vh;
overflow:hidden;
display:flex;
align-items:flex-end;
padding:55px;
background:
linear-gradient(
135deg,
rgba(7,18,15,.25),
rgba(7,18,15,.95)
),
url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1200&q=85");

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

.visual-side::before{
content:"";
position:absolute;
inset:0;
background:
linear-gradient(
to top,
#07120f 3%,
rgba(7,18,15,.65) 40%,
rgba(7,18,15,.05) 100%
);
}

.visual-side::after{
content:"";
position:absolute;
width:300px;
height:300px;
border-radius:50%;
background:rgba(56,211,159,.12);
filter:blur(70px);
top:-80px;
right:-80px;
}

.visual-content{
position:relative;
z-index:2;
max-width:560px;
}

.visual-logo{
font-family:"Manrope",sans-serif;
font-size:26px;
font-weight:800;
position:absolute;
top:-450px;
left:0;
}

.visual-logo span{
color:var(--green);
}

.visual-label{
display:inline-flex;
align-items:center;
gap:8px;
font-size:11px;
font-weight:800;
letter-spacing:1.5px;
color:var(--green);
margin-bottom:18px;
}

.visual-label i{
font-size:7px;
}

.visual-content h1{
font-family:"Manrope",sans-serif;
font-size:clamp(35px,4vw,55px);
line-height:1.05;
letter-spacing:-2.5px;
margin-bottom:20px;
}

.visual-content h1 span{
color:var(--green);
}

.visual-content p{
color:#b3c1bc;
font-size:15px;
line-height:1.8;
max-width:500px;
}

.visual-points{
display:flex;
gap:25px;
margin-top:28px;
flex-wrap:wrap;
}

.visual-point{
display:flex;
align-items:center;
gap:8px;
font-size:12px;
color:#c2cec9;
}

.visual-point i{
color:var(--green);
}

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

.form-side{
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
padding:45px 8%;
background:
radial-gradient(
circle at 80% 10%,
rgba(56,211,159,.055),
transparent 30%
),
var(--bg);
}

.form-container{
width:100%;
max-width:450px;
}

.mobile-logo{
display:none;
font-family:"Manrope",sans-serif;
font-size:24px;
font-weight:800;
margin-bottom:45px;
}

.mobile-logo span{
color:var(--green);
}

.form-header{
margin-bottom:30px;
}

.form-header h2{
font-family:"Manrope",sans-serif;
font-size:36px;
letter-spacing:-1.7px;
margin-bottom:8px;
}

.form-header p{
font-size:13px;
color:var(--muted);
}

.form-header p a{
color:var(--green);
font-weight:700;
}

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

.login-form{
display:flex;
flex-direction:column;
gap:19px;
}

.input-group{
display:flex;
flex-direction:column;
gap:8px;
}

.input-group label{
font-size:11px;
font-weight:700;
color:#c9d4d0;
}

.input-wrapper{
position:relative;
}

.input-wrapper i.input-icon{
position:absolute;
left:15px;
top:50%;
transform:translateY(-50%);
color:#73857e;
font-size:13px;
pointer-events:none;
}

.input-wrapper input{
width:100%;
height:52px;
border:1px solid var(--border);
background:#0b1a15;
border-radius:10px;
outline:none;
padding:0 45px 0 42px;
color:var(--white);
font-size:13px;
transition:.3s;
}

.input-wrapper input::placeholder{
color:#61736c;
}

.input-wrapper input:focus{
border-color:rgba(56,211,159,.6);
background:#0d1f18;
box-shadow:0 0 0 3px rgba(56,211,159,.06);
}

.password-toggle{
position:absolute;
right:15px;
top:50%;
transform:translateY(-50%);
border:0;
background:none;
color:#72847d;
cursor:pointer;
font-size:13px;
}

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

/* ================= OPTIONS ================= */

.login-options{
display:flex;
align-items:center;
justify-content:space-between;
gap:15px;
margin-top:-3px;
}

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

.remember input{
width:15px;
height:15px;
accent-color:var(--green);
cursor:pointer;
}

.remember label{
font-size:11px;
color:#7f918a;
cursor:pointer;
}

.forgot-password{
font-size:11px;
font-weight:700;
color:var(--green);
transition:.3s;
}

.forgot-password:hover{
color:#69e4ba;
}

/* ================= LOGIN BUTTON ================= */

.login-btn{
width:100%;
height:52px;
border:0;
border-radius:10px;
background:var(--green);
color:#04120d;
font-weight:800;
font-size:13px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
gap:9px;
transition:.3s;
}

.login-btn:hover{
background:#55dfaf;
transform:translateY(-2px);
box-shadow:0 12px 30px rgba(56,211,159,.15);
}

.login-btn:disabled{
opacity:.6;
cursor:not-allowed;
transform:none;
}

/* ================= DIVIDER ================= */

.divider{
display:flex;
align-items:center;
gap:12px;
color:#53655e;
font-size:10px;
margin:1px 0;
}

.divider::before,
.divider::after{
content:"";
height:1px;
background:var(--border);
flex:1;
}

/* ================= GOOGLE ================= */

.google-btn{
width:100%;
height:50px;
border:1px solid var(--border);
border-radius:10px;
background:rgba(255,255,255,.025);
color:#d7e0dc;
font-size:12px;
font-weight:700;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
gap:10px;
transition:.3s;
}

.google-btn:hover{
border-color:rgba(255,255,255,.2);
background:rgba(255,255,255,.045);
}

.google-btn i{
font-size:14px;
}

/* ================= MESSAGE ================= */

.form-message{
display:none;
padding:11px 13px;
border-radius:9px;
font-size:11px;
line-height:1.5;
}

.form-message.error{
display:block;
background:rgba(239,107,107,.07);
border:1px solid rgba(239,107,107,.2);
color:#e99a9a;
}

.form-message.success{
display:block;
background:rgba(56,211,159,.07);
border:1px solid rgba(56,211,159,.2);
color:var(--green);
}

/* ================= FOOTER ================= */

.form-footer{
text-align:center;
font-size:11px;
color:#687a73;
margin-top:22px;
line-height:1.7;
}

.form-footer a{
color:var(--green);
font-weight:700;
}

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

@media(max-width:900px){

.login-page{
grid-template-columns:1fr;
}

.visual-side{
display:none;
}

.form-side{
padding:45px 7%;
}

.mobile-logo{
display:block;
}

}

@media(max-width:600px){

.form-side{
padding:30px 20px;
align-items:flex-start;
}

.form-container{
padding-top:10px;
}

.mobile-logo{
margin-bottom:38px;
}

.form-header h2{
font-size:30px;
}

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

.login-form{
gap:17px;
}

.login-options{
align-items:flex-start;
}

}


/* =========================================================
   ESTATEX TOAST NOTIFICATIONS
========================================================= */

#estatex-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    width: min(390px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.estatex-toast {
    --toast-accent: #38d39f;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 16px 20px;
    overflow: hidden;
    color: #f3f7f5;
    background: #101c18;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 3px solid var(--toast-accent);
    border-radius: 13px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
    pointer-events: auto;
    animation: estatexToastIn 0.3s ease both;
}

.estatex-toast[data-type="success"] {
    --toast-accent: #38d39f;
}

.estatex-toast[data-type="error"] {
    --toast-accent: #ff6b75;
}

.estatex-toast[data-type="warning"] {
    --toast-accent: #e8bd65;
}

.estatex-toast[data-type="info"] {
    --toast-accent: #75baff;
}

.estatex-toast-icon {
    flex: 0 0 23px;
    color: var(--toast-accent);
    font-size: 21px;
    line-height: 1.3;
}

.estatex-toast-content {
    flex: 1;
    min-width: 0;
}

.estatex-toast-title {
    margin: 0 0 5px;
    color: #f3f7f5;
    font-size: 14px;
    font-weight: 700;
}

.estatex-toast-message {
    margin: 0;
    color: #b8c5bf;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.estatex-toast-close {
    flex: 0 0 auto;
    padding: 0 2px;
    color: #9baaa3;
    background: transparent;
    border: 0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.estatex-toast-close:hover {
    color: #ffffff;
}

.estatex-toast-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--toast-accent);
    transform-origin: left;
    animation: estatexToastProgress var(--toast-duration, 4.5s) linear forwards;
}

.estatex-toast.estatex-toast-leaving {
    animation: estatexToastOut 0.22s ease forwards;
}

@keyframes estatexToastIn {
    from {
        opacity: 0;
        transform: translateX(22px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes estatexToastOut {
    to {
        opacity: 0;
        transform: translateX(22px);
    }
}

@keyframes estatexToastProgress {
    to {
        transform: scaleX(0);
    }
}

@media (max-width: 480px) {
    #estatex-toast-container {
        top: 12px;
        right: 12px;
        width: calc(100vw - 24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .estatex-toast,
    .estatex-toast.estatex-toast-leaving,
    .estatex-toast-progress {
        animation-duration: 0.01ms;
    }
}

/* =========================================================
   ESTATEX WHATSAPP SUPPORT WIDGET
========================================================= */

.estatex-whatsapp {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9990;

    width: 60px;
    height: 60px;
    border-radius: 50%;

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

    color: #ffffff;
    background: #25D366;
    text-decoration: none;
    font-size: 34px;

    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.estatex-whatsapp:hover {
    color: #ffffff;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%) translateX(5px);

    padding: 10px 14px;
    border-radius: 8px;

    color: #ffffff;
    background: #101c18;
    border: 1px solid rgba(56, 211, 159, 0.2);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.estatex-whatsapp:hover .whatsapp-tooltip,
.estatex-whatsapp:focus-visible .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.estatex-whatsapp:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .estatex-whatsapp {
        right: 16px;
        bottom: 18px;
        width: 54px;
        height: 54px;
        font-size: 30px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .estatex-whatsapp,
    .whatsapp-tooltip {
        transition: none;
    }
}
