/* =====================================================
   AUTH UI — BLACKCODE CAPITAL
   Matte Black Edition
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

/* =====================================================
   BASE
===================================================== */
body{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
    position:relative;
    overflow-x:hidden;

    background:
        radial-gradient(circle at 18% 22%, rgba(255,255,255,.035), transparent 32%),
        radial-gradient(circle at 82% 78%, rgba(255,255,255,.025), transparent 36%),
        linear-gradient(135deg, #050505 0%, #090909 32%, #0c0c0c 60%, #030303 100%);
    color:#f3f3f3;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.02), transparent 18%, transparent 82%, rgba(255,255,255,.015)),
        radial-gradient(circle at center, transparent 38%, rgba(0,0,0,.34) 100%);
    z-index:0;
}

body::after{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    opacity:.04;
    mix-blend-mode:soft-light;
    background-image:
        linear-gradient(rgba(255,255,255,.65) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.65) 1px, transparent 1px);
    background-size:4px 4px;
    z-index:0;
}

/* =====================================================
   CONTENEDOR
===================================================== */
.auth-container{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    z-index:1;
}

/* =====================================================
   TARJETA MATTE BLACK
===================================================== */
.auth-card{
    width:420px;
    max-width:100%;
    padding:55px;
    border-radius:22px;
    text-align:center;
    position:relative;
    overflow:hidden;

    background:
        linear-gradient(145deg, rgba(16,16,16,.92), rgba(7,7,7,.97));
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.08);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 0 0 1px rgba(255,255,255,.02),
        0 24px 70px rgba(0,0,0,.72);
}

.auth-card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        linear-gradient(120deg, rgba(255,255,255,.04), transparent 24%, transparent 78%, rgba(255,255,255,.02));
}

.auth-card::after{
    content:"";
    position:absolute;
    inset:12px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.04);
    pointer-events:none;
}

/* =====================================================
   TITULO
===================================================== */
.auth-card h1{
    margin-bottom:34px;
    font-weight:700;
    letter-spacing:.5px;
    font-size:1.85rem;
    color:#f7f7f7;
    position:relative;
    z-index:1;
}

/* =====================================================
   FORMULARIO
===================================================== */
.auth-card form{
    position:relative;
    z-index:1;
}

/* =====================================================
   INPUTS / SELECT MATTE
===================================================== */
.auth-card input,
.auth-card select{
    width:100%;
    height:54px;
    padding:15px 16px;
    margin-bottom:18px;
    border-radius:12px;
    font-size:14px;
    position:relative;
    z-index:1;

    background:#0d0d0d;
    border:1px solid rgba(255,255,255,.08);
    color:#f1f1f1;

    transition:.25s ease;
    outline:none;
}

.auth-card input::placeholder{
    color:#777777;
}

.auth-card input:focus,
.auth-card select:focus{
    border:1px solid rgba(255,255,255,.16);
    background:#111111;
    box-shadow:
        0 0 0 3px rgba(255,255,255,.05),
        0 0 14px rgba(255,255,255,.05);
}

/* =====================================================
   PHONE GROUP
===================================================== */
.phone-group{
    display:flex;
    gap:10px;
    width:100%;
    margin-bottom:18px;
}

.phone-group .phone-code,
.phone-group .phone-number{
    margin-bottom:0;
}

.phone-code{
    width:110px;
    min-width:110px;
    max-width:110px;
    padding:0 36px 0 12px !important;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    cursor:pointer;
    text-align:left;
    background:
        linear-gradient(180deg, #111111 0%, #0b0b0b 100%);
    background-image:
        linear-gradient(180deg, #111111 0%, #0b0b0b 100%),
        linear-gradient(45deg, transparent 50%, rgba(255,255,255,.72) 50%),
        linear-gradient(135deg, rgba(255,255,255,.72) 50%, transparent 50%);
    background-repeat:no-repeat, no-repeat, no-repeat;
    background-size:100% 100%, 6px 6px, 6px 6px;
    background-position:center, calc(100% - 16px) 23px, calc(100% - 10px) 23px;
    color:#f5f5f5 !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

.phone-number{
    flex:1;
    min-width:0;
    width:auto;
}

.phone-code option{
    background:#0d0d0d;
    color:#f5f5f5;
}

.phone-number{
    flex:1;
    min-width:0;
}

/* =====================================================
   BOTÓN BLACK PREMIUM
===================================================== */
.auth-card button{
    width:100%;
    padding:15px;
    border-radius:12px;
    font-weight:700;
    font-size:14px;
    cursor:pointer;
    position:relative;
    z-index:1;

    color:#f8f8f8;
    background:linear-gradient(180deg, #1b1b1b 0%, #101010 100%);
    border:1px solid rgba(255,255,255,.10);

    transition:.25s ease;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 12px 24px rgba(0,0,0,.45);
}

.auth-card button:hover{
    transform:translateY(-2px);
    background:linear-gradient(180deg, #222222 0%, #111111 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 16px 28px rgba(0,0,0,.55);
}

.auth-card button:active{
    transform:translateY(0);
}

/* =====================================================
   MENSAJES
===================================================== */
.error,
.success,
.auth-message{
    margin-top:14px;
    padding:12px 14px;
    border-radius:12px;
    font-size:14px;
    line-height:1.45;
    text-align:center;
    position:relative;
    z-index:1;
    border:1px solid rgba(255,255,255,.10);
    background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
    color:#f0f0f0;
    box-shadow:0 10px 22px rgba(0,0,0,.22);
}

.error,
.auth-message.error{
    color:#f3f3f3;
    border-color:rgba(255,255,255,.10);
    background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}

.success,
.auth-message.success{
    color:#ffffff;
    border-color:rgba(255,255,255,.14);
    background:linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
}

/* =====================================================
   LINKS
===================================================== */
.auth-link{
    margin-top:26px;
    color:#9a9a9a;
    font-size:14px;
    position:relative;
    z-index:1;
}

.auth-link a{
    color:#f1f1f1;
    text-decoration:none;
    font-weight:600;
    transition:.25s ease;
}

.auth-link a:hover{
    color:#ffffff;
    opacity:.85;
}

/* =====================================================
   AUTOFILL FIX
===================================================== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus{
    -webkit-text-fill-color:#f1f1f1;
    -webkit-box-shadow:0 0 0 1000px #0d0d0d inset;
    transition:background-color 9999s ease-in-out 0s;
    border:1px solid rgba(255,255,255,.08);
}

/* =====================================================
   RESPONSIVE — TABLET / TELÉFONO
===================================================== */
@media (max-width:768px){

    body{
        align-items:flex-start;
        padding:24px 16px;
    }

    .auth-card{
        width:100%;
        padding:38px 24px;
        border-radius:18px;
    }

    .auth-card::after{
        inset:10px;
        border-radius:14px;
    }

    .auth-card h1{
        font-size:1.5rem;
        margin-bottom:26px;
    }

    .auth-card input,
    .auth-card select{
        height:52px;
        font-size:15px;
    }

    .auth-card button{
        padding:14px;
        font-size:15px;
    }

    .auth-link{
        font-size:13px;
        margin-top:22px;
    }
}

/* =====================================================
   RESPONSIVE — TELÉFONOS
===================================================== */
@media (max-width:600px){
    .phone-group{
        flex-direction:row;
        gap:10px;
        align-items:stretch;
    }

    .phone-code{
        width:96px;
        min-width:96px;
        max-width:96px;
    }

    .phone-number{
        flex:1;
    }
}

/* =====================================================
   TELÉFONOS PEQUEÑOS
===================================================== */
@media (max-width:400px){

    .auth-card{
        padding:28px 18px;
    }

    .auth-card h1{
        font-size:1.3rem;
    }

    .auth-card input,
    .auth-card select,
    .auth-card button{
        font-size:14px;
    }
}