/* ============================================================================
   REGISTRO - PREMIUM NATIVE APP STYLE - BRAND COLORS
   ============================================================================ */
html,
body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    background-color: #f7f7f7;

    overflow-x: hidden !important;

    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    /* Safari/Chrome */
    -ms-user-select: none;
    /* IE/Edge */
}

/* Header Link Space */
#header-link {
    width: 100%;
    max-width: 480px;
}

.registro-container {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    margin: 20px;
}

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

.registro-header {
    background: linear-gradient(135deg, #f7f772 0%, #fefe57 100%);
    padding: 40px 20px 30px;
    text-align: center;
    color: #1c1c1c;
    position: relative;
    overflow: hidden;
}

.registro-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: rgba(28, 28, 28, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    border: 3px solid rgba(28, 28, 28, 0.15);
}

.logo-circle i {
    font-size: 40px;
    color: #1c1c1c;
}

.registro-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    color: #1c1c1c;
}

.registro-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
    color: #2b2b2b;
}

/* ============================================================================
   PROGRESS BAR
   ============================================================================ */

.progress-container {
    padding: 20px 20px 10px;
    background: #fff;
}

.progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f7f772 0%, #030303 100%);
    width: 33.33%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.7;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: #1c1c1c;
    color: #fbff00;
    box-shadow: 0 4px 12px rgba(28, 28, 28, 0.4);
}

.step.completed .step-circle {
    background: #4caf50;
    color: #fff;
}

.step span {
    font-size: 11px;
    font-weight: 600;
    color: #666;
}

.step.active span {
    color: #1c1c1c;
    font-weight: 700;
}

/* ============================================================================
   FORM STEPS
   ============================================================================ */

#registerForm {
    padding: 20px;
    min-height: 350px;
    position: relative;
}

.form-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.step-title i {
    font-size: 24px;
    color: #1c1c1c;
}

.step-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ============================================================================
   INPUT GROUPS
   ============================================================================ */

.input-group {
    position: relative;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.input-icon {
    width: 40px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 8px;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    height: 48px;
    padding: 16px 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    background: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: #fbff00;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(251, 255, 0, 0.15);
}

.input-wrapper label {
    position: absolute;
    left: 12px;
    top: 14px;
    font-size: 15px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.input-wrapper input:focus+label,
.input-wrapper input:not(:placeholder-shown)+label,
.input-wrapper select:focus+.select-label,
.input-wrapper select:valid+.select-label {
    top: 6px;
    font-size: 11px;
    color: #1c1c1c;
    font-weight: 600;
}

.input-wrapper select+.select-label {
    top: 14px;
}

.input-hint {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    padding-left: 12px;
}

.input-check {
    width: 24px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.input-group.valid .input-check {
    opacity: 1;
}

.input-check i {
    font-size: 20px;
    color: #4caf50;
}

/* Toggle Password */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #1c1c1c;
}

/* Password Strength */
.password-strength {
    margin: -16px 0 20px 52px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background: #e0e0e0;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.strength-bars.weak .strength-bar:nth-child(1) {
    background: #f44336;
}

.strength-bars.fair .strength-bar:nth-child(1),
.strength-bars.fair .strength-bar:nth-child(2) {
    background: #ff9800;
}

.strength-bars.good .strength-bar:nth-child(1),
.strength-bars.good .strength-bar:nth-child(2),
.strength-bars.good .strength-bar:nth-child(3) {
    background: #2196f3;
}

.strength-bars.strong .strength-bar {
    background: #4caf50;
}

.strength-text {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

/* Warning Box */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.warning-box i {
    font-size: 24px;
    color: #ff9800;
    flex-shrink: 0;
}

.warning-box strong {
    display: block;
    color: #856404;
    margin-bottom: 4px;
    font-size: 13px;
}

.warning-box p {
    margin: 0;
    font-size: 12px;
    color: #856404;
    line-height: 1.5;
}

/* ============================================================================
   FORM ACTIONS
   ============================================================================ */

.form-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #fafafa;
    margin: 0 -20px -20px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    height: 52px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1c1c1c;
    color: #fbff00;
    box-shadow: 0 4px 16px rgba(28, 28, 28, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(28, 28, 28, 0.4);
    transform: translateY(-2px);
    background: #030303;
}

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

.btn-secondary {
    background: #fff;
    color: #1c1c1c;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: #1c1c1c;
    background: #f8f8f8;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.registro-footer {
    padding: 20px;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
}

.registro-footer p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.registro-footer a {
    color: #1c1c1c;
    font-weight: 700;
    text-decoration: none;
}

.registro-footer a:hover {
    text-decoration: underline;
    color: #030303;
}

/* ============================================================================
   LOADING OVERLAY
   ============================================================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(251, 255, 0, 0.2);
    border-top-color: #fbff00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: #fbff00;
    font-size: 16px;
    font-weight: 600;
}

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

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .registro-container {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        margin: 0;
    }

    .form-actions {
        position: sticky;
        bottom: 0;
        z-index: 10;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    }

    #header-link {
        max-width: 100%;
    }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

.input-group.error input {
    border-color: #f44336;
    animation: shake 0.5s;
}

.input-group.error .input-icon {
    color: #f44336;
}
/* ============================================================================
   LOGIN BUTTON IN REGISTER
   ============================================================================ */

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    height: 52px;
    background: #1c1c1c;
    color: #fbff00;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(28, 28, 28, 0.3);
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(28, 28, 28, 0.4);
    background: #030303;
}

.btn-login i {
    font-size: 20px;
}

/* ============================================================================
   HEADER LOGIN LINK
   ============================================================================ */

.header-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #1c1c1c;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.header-login-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-login-link i {
    font-size: 16px;
}

/* ============================================================================
   HEADER BUTTON (SMALL) - REPLACES header-login-link
   ============================================================================ */

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #1c1c1c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.header-btn i {
    font-size: 14px;
}
