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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #0a84ff, #003f8f);
    min-height: 100vh;
    color: #333;
}

/* =========================
   CONTENEDOR GENERAL
========================= */
.register-wrapper {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}

/* =========================
   LADO INFO
========================= */
.register-info {
    flex: 1;
    min-width: 280px;
    padding: 60px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-info h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.register-info .subtitle {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 25px;
}

.register-info .benefits {
    list-style: none;
    margin-bottom: 25px;
}

.register-info .benefits li {
    margin-bottom: 10px;
    font-size: 15px;
}

.register-info .badge {
    background: rgba(255,255,255,0.15);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    width: fit-content;
}

/* =========================
   FORMULARIO
========================= */
.register-box {
    flex: 1;
    min-width: 280px;
    background: #fff;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-box h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: #0a84ff;
}

/* =========================
   INPUTS
========================= */
.register-box label {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.register-box .input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color .2s, box-shadow .2s;
}

.register-box .input:focus {
    outline: none;
    border-color: #0a84ff;
    box-shadow: 0 0 0 3px rgba(10,132,255,0.15);
}

/* =========================
   BOTÓN
========================= */
#registerBtn {
    position: relative;
    width: 100%;
    background: #0a84ff;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    font-weight: bold;
}

#registerBtn:hover {
    background: #006edc;
}

#registerBtn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Loader */
#registerBtn.loading .btn-text {
    visibility: hidden;
}

#registerBtn.loading::after {
    content: "";
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =========================
   LINKS
========================= */
.login-link {
    margin-top: 25px;
    font-size: 14px;
    text-align: center;
}

.login-link a {
    color: #0a84ff;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .register-wrapper {
        flex-direction: column;
    }

    .register-info,
    .register-box {
        padding: 40px 25px;
    }
}
