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

html, body {
    width: 100%;
    height: 100vh;
    overflow: hidden; 
    background-color: #050505; 
    font-family: "Lexend", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 15%, rgba(12, 109, 245, 0.555) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(98, 0, 234, 0.63) 0%, transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(0, 229, 255, 0.479) 0%, transparent 35%),
        radial-gradient(circle at 10% 90%, rgba(128, 11, 163, 0.616) 0%, transparent 40%);
    z-index: 1;
    opacity: 0.9;
}


#form {
    width: clamp(300px, 90%, 500px);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 4vh, 30px);
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 0 0 1px rgba(22, 96, 200, 0.2), 
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(22, 96, 200, 0.1);
    z-index: 2;
    overflow-y: auto; 
}


#form::-webkit-scrollbar { width: 6px; }
#form::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }


h1 {
    margin-bottom: clamp(10px, 2vh, 20px);
    font-size: clamp(20px, 3vw, 26px);
    text-align: center;
    background: linear-gradient(to right, #ffffff, #1660c8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

label {
    display: block;
    font-size: 13px;
    color: #ccc;
    margin-bottom: 4px;
}


.input-div {
    width: 100%;
    margin-bottom: clamp(4px, 1vh, 8px);
    display: flex;
    flex-direction: column;
}

input, select {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

input:focus, select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #1660c8;
    box-shadow: 0 0 15px rgba(22, 96, 200, 0.3);
}


select option {
    background-color: #1a1a1a;
    color: #fff;
}

.input-phone {
    display: flex;
    gap: 8px;
    align-items: stretch;
    width: 100%;
}

#phone-code {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 12px;
    border-radius: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap; 
    flex-shrink: 0; 
    min-width: 65px;
}


.information {
    display: none;
    width: 100%;
    font-size: 11px;
    color: #e62b2b;
    margin-top: 4px;
    line-height: 1.2;
}

.show-information { display: block; }


.true { outline: 2px solid #2ecc71 !important; }
.false { outline: 2px solid #e74c3c !important; }


#boton {
    background: #1660c8;
    color: white;
    padding: clamp(10px, 1.5vh, 14px);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    box-shadow: 0 0 20px rgba(22, 96, 200, 0.5);
    transition: all 0.3s ease;
}

#boton:hover:not(:disabled) {
    background: #1e70e6;
    box-shadow: 0 0 30px rgba(22, 96, 200, 0.7);
    transform: scale(1.02);
}

#boton:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
    box-shadow: none;
}

input:-webkit-autofill {
    -webkit-text-fill-color: #ffffff; 
    -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset; 
}


.main-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 15, 15, 0.8);
    border-top: 1px solid #222;
    z-index: 3;
    pointer-events: none;
}

.main-footer p, .main-footer a {
    pointer-events: auto;
    color: #fcfcfc;
    font-size: 14px;
}

.main-footer a {
    color: #1660c8;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.main-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 600px) {
    #form { width: 92%; padding: 20px; }
}