/* ===================================
   REGISTER PAGE - ESTILO STRIPE
   =================================== */

.register-body {
    background: #f6f9fc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.register-header {
    background: linear-gradient(90deg, #c026d3 0%, #a21caf 50%, #f97316 100%) !important;
    border-bottom: 1px solid #e3e8ee;
    padding: 1.25rem 0;
}

.register-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.register-nav .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0a2540;
}

.register-nav .logo img {
    width: 32px;
    height: 32px;
}

.register-link {
    font-size: 0.9375rem;
    color: #635bff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.register-link:hover {
    opacity: 0.8;
}

/* MAIN CONTENT */
.register-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

.register-container {
    width: 100%;
    max-width: 560px;
    position: relative;
    z-index: 10;
}

/* CARD */
.register-card {
    background: white;
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 20px 80px rgba(0, 0, 0, 0.06);
    padding: 3rem;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* TÍTULOS */
.register-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0a2540;
    line-height: 1.2;
    margin: 0;
}

.register-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: -1rem 0 0 0;
    line-height: 1.5;
}

/* FORMULARIO */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.9375rem;
    color: #0a2540;
    font-weight: 600;
    line-height: 1.4;
}

.form-input,
.form-select {
    padding: 0.875rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
    color: #0a2540;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #635bff;
    box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236b7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* BOTÓN CONTINUAR */
.btn-continue {
    padding: 1rem 1.5rem;
    background: #635bff;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-continue:hover {
    background: #5348e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 91, 255, 0.3);
}

.btn-continue:active {
    transform: translateY(0);
}

/* TÉRMINOS */
.register-terms {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
    margin: -0.5rem 0 0 0;
}

.register-terms a {
    color: #635bff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.register-terms a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* DECORACIÓN DE ONDAS */
.decoration-wave {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #fbbf24 0%, #60a5fa 100%);
    clip-path: polygon(100% 50%, 0% 100%, 100% 100%);
    opacity: 0.15;
    pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .register-card {
        padding: 2rem 1.5rem;
        border-radius: 0;
        box-shadow: none;
    }

    .register-title {
        font-size: 1.75rem;
    }

    .register-subtitle {
        font-size: 1rem;
    }

    .register-main {
        padding: 1.5rem 0;
    }

    .decoration-wave {
        height: 200px;
    }
}

/* ANIMACIÓN DE LOADING (opcional para cuando se envía el form) */
.btn-continue.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-continue.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Estados de validación */
.form-input:valid {
    border-color: #10b981;
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Hover effects mejorados */
.form-input:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: #9ca3af;
}

/* Focus visible para accesibilidad */
.form-input:focus-visible,
.form-select:focus-visible,
.btn-continue:focus-visible {
    outline: 2px solid #635bff;
    outline-offset: 2px;
}