/* ============================================================
   VECTOREXEC - REGISTRO
   ============================================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0d47a1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-container {
    width: 100%;
    max-width: 480px;
}

.register-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.register-card:hover {
    transform: translateY(-2px);
}

/* ============================================================
   HEADER
   ============================================================ */

.register-header {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #0D47A1;
    letter-spacing: -0.5px;
}

.register-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 6px;
}

.register-header .subtitle {
    font-size: 14px;
    color: #718096;
    font-weight: 400;
}

/* ============================================================
   FORMULARIO
   ============================================================ */

#registerForm {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: 0.3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #1a202c;
    background: #f7fafc;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #0D47A1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

.form-group input.error {
    border-color: #e53e3e;
    background: #fff5f5;
}

.form-group small {
    font-size: 12px;
    color: #718096;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.form-row .form-group {
    min-width: 0;
    width: 100%;
}

.form-row .form-group input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   CHECKBOX
   ============================================================ */

.checkbox-group {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0D47A1;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #0D47A1;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ============================================================
   MENSAJES
   ============================================================ */

.message {
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.message.show {
    display: flex;
}

.message.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.message.success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.message.info {
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #90cdf4;
}

/* ============================================================
   BOTÓN
   ============================================================ */

.btn-primary {
    padding: 14px 24px;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

.register-footer {
    text-align: center;
    margin-top: 8px;
}

.register-footer p {
    font-size: 14px;
    color: #718096;
    margin: 6px 0;
}

.register-footer a {
    color: #0D47A1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.register-footer a:hover {
    color: #1565C0;
    text-decoration: underline;
}

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

@media (max-width: 480px) {
    .register-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .register-header h1 {
        font-size: 20px;
    }

    .logo-text {
        font-size: 24px;
    }

    .btn-primary {
        font-size: 15px;
        padding: 12px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group input {
        font-size: 14px;
        padding: 10px 14px;
    }
}
