@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800&display=swap');

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Nunito Sans', sans-serif;
    background-color: #f9f9f9;
}

/* --- Layout Principal (Split Screen) --- */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-form {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    background-color: #f9f9f9; /* Fondo claro por defecto */
}

.auth-image {
    width: 50%;
    background-image: url('https://www.bandup.es/assets/image_login.jpg');
    background-size: cover;
    background-position: center;
}

/* --- Cards --- */
.card {
    width: 100%;
    max-width: 480px; /* Ancho máximo de la tarjeta */
    background: transparent;
}

.register-card, .login-card {
    background-color: transparent;
}

/* --- Header Image Component (Register) --- */
.card-image-header {
    width: 100%;
    height: 220px; /* Altura ajustada */
    background-image: url('https://bandup.es/assets/create_image.png');
    background-size: cover;
    background-position: center;
    border-radius: 30px; /* Borde muy redondeado como en la captura */
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Texto abajo */
    padding: 25px;
    color: white;
}

.header-overlay h1 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.header-overlay p {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
}

/* Header standard (Login) */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
}
.logo-auth {
    max-width: 140px;
    margin-bottom: 1rem;
}

/* --- Textos y Labels --- */
.subtitle-text {
    text-align: center;
    color: #1E1E1E;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.input-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #1E1E1E;
    margin-bottom: 8px;
    margin-left: 5px; /* Alinear visualmente con el borde redondeado */
}

/* --- Inputs Modernos (Pill Shape) --- */
.input-group-rounded {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px; /* Pill shape */
    padding: 5px 20px;
    display: flex;
    align-items: center;
    height: 54px; /* Altura fija cómoda */
    box-sizing: border-box;
    transition: all 0.2s ease;
    margin-bottom: 5px; /* Espacio para el feedback */
}

.input-group-rounded:focus-within {
    border-color: #1DB954; /* Verde activo o Brand color */
    box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.1);
}

.input-group-rounded.error {
    border-color: #E23E57;
}

.input-group-rounded.success {
    border-color: #1DB954;
    border-width: 2px; /* Más notorio */
}

.prefix {
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-right: 2px;
    white-space: nowrap;
}

.input-clean {
    border: none;
    background: transparent;
    font-size: 16px;
    color: #1E1E1E;
    width: 100%;
    outline: none;
    padding: 0;
    font-weight: 600; /* Texto input semi-bold */
}

.input-clean::placeholder {
    color: #ccc;
    font-weight: 400;
}

/* Status Icon (Spinner, Check, Cross) */
.status-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.status-icon i {
    font-size: 18px;
}

/* Feedback Messages */
.slug-feedback-text {
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 20px;
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.slug-feedback-text.success { color: #1DB954; font-weight: 600; }
.slug-feedback-text.error { color: #E23E57; font-weight: 600; }

/* --- Checkbox Personalizado --- */
.form-group-checkbox {
    margin: 25px 0 30px 0;
}

.custom-checkbox-label {
    display: flex;
    align-items: flex-start; /* Alinear arriba si el texto es largo */
    cursor: pointer;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.custom-checkbox-label input { display: none; }

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%; /* Checkbox redondo como radio button visualmente o cuadrado redondeado */
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
    top: -2px; /* Ajuste fino vertical */
}

/* Check interior */
.custom-checkbox-label input:checked + .custom-checkbox {
    background-color: #E23E57; /* Brand color */
    border-color: #E23E57;
}

.custom-checkbox-label input:checked + .custom-checkbox::after {
    content: '\f00c'; /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 10px;
}

.custom-checkbox-label a {
    color: #E23E57;
    text-decoration: none;
    font-weight: 700;
}

/* --- Botones --- */
.btn-primary-rounded {
    background-color: #E23E57;
    color: white;
    border: none;
    border-radius: 50px;
    width: 100%;
    height: 54px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Espacio para el icono */
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 4px 15px rgba(226, 62, 87, 0.3); /* Sombra suave */
}

.btn-primary-rounded:hover {
    background-color: #d1314a;
    transform: translateY(-1px);
}

.btn-primary-rounded:active {
    transform: translateY(1px);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

/* --- Links Inferiores --- */
.sub-link {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #666;
}

.text-highlight {
    color: #E23E57;
    font-weight: 700;
    text-decoration: none;
}

.support-link {
    margin-top: 15px;
}
.support-link a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.support-link a:hover { color: #666; }


/* --- Mensajes de Sistema --- */
.message {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}
.message.error { background-color: #FFF0F1; color: #E23E57; border: 1px solid #fadbdc; }
.message.success { background-color: #E8F5E9; color: #1DB954; border: 1px solid #c8e6c9; }


/* --- Responsive --- */
@media (max-width: 900px) {
    .auth-image {
        display: none; /* Ocultar imagen lateral en tablet/móvil */
    }
    .auth-form {
        width: 100%;
        padding: 1.5rem;
    }
    .card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .card-image-header {
        height: 180px; /* Un poco más bajo en móvil */
        border-radius: 20px;
    }
    .header-overlay h1 {
        font-size: 24px;
    }
    .input-group-rounded {
        padding: 5px 15px;
    }
    .prefix {
        font-size: 15px;
    }
    .input-clean {
        font-size: 15px;
    }
}

/* --- Check Email Page --- */
.check-email-container {
    text-align: center;
    padding: 10px 0;
}

.success-icon-container {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #E23E57 0%, #ff7eb3 100%); /* Pink gradient */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    box-shadow: 0 10px 25px rgba(226, 62, 87, 0.3);
}

.success-icon {
    font-size: 40px;
    color: white;
}

.check-email-title {
    font-size: 32px;
    font-weight: 800;
    color: #0d1117;
    margin: 0 0 5px 0;
}

.check-email-subtitle {
    font-size: 24px;
    font-weight: 800;
    color: #E23E57;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

/* Grey box for email details */
.check-email-message-box {
    background-color: #f7f9fc; /* Very light grey/blue */
    border-radius: 30px; /* Rounded corners */
    padding: 30px;
    margin-bottom: 30px;
}

.text-intro {
    font-size: 16px;
    color: #4A5568;
    margin: 0 0 5px 0;
}

.email-highlight {
    font-size: 18px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 25px 0;
    word-break: break-all;
}

.text-instruction {
    font-size: 15px;
    color: #4A5568;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

.brand-text {
    color: #E23E57;
    font-weight: 800;
    font-style: italic;
}

/* Pill Button */
.btn-secondary-pill {
    background-color: #fff5f7; /* Very light pink background */
    color: #E23E57;
    border: 2px solid #ffd1da; /* Soft pink border */
    border-radius: 50px;
    width: 100%;
    height: 54px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.btn-secondary-pill:hover {
    background-color: #ffe0e6;
    border-color: #ffb3c1;
    color: #d1314a;
}

/* Footer */
.check-email-footer {
    margin-top: 40px;
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
}

.check-email-footer p {
    margin: 0;
}

.resend-link {
    color: #E23E57;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: inline;
}

.resend-link:hover {
    text-decoration: underline;
}

.resend-link.disabled {
    color: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Verification Code Inputs --- */
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.code-input {
    width: 45px;
    height: 55px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #1E1E1E;
    background-color: #fff;
    transition: all 0.2s ease;
    padding: 0;
    /* Remove native appearance */
    -moz-appearance: textfield;
}

.code-input::-webkit-outer-spin-button,
.code-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.code-input:focus {
    border-color: #E23E57;
    box-shadow: 0 0 0 4px rgba(226, 62, 87, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* --- Redesign Verify Code Page --- */

.header-redesign {
    text-align: center;
    margin-bottom: 30px;
}

.logo-auth-redesign {
    max-width: 160px;
    margin-bottom: 20px;
}

.title-redesign {
    font-size: 2rem; /* Large title */
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
    line-height: 1.1;
}

.subtitle-redesign {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

.subtitle-redesign strong {
    color: #000;
}

.label-small {
    font-size: 0.75rem;
    font-weight: 800;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    display: block;
}

.code-input-redesign {
    width: 48px;
    height: 58px;
    border: 1px solid #d0d0d0; /* Softer border */
    border-radius: 12px; /* Smooth rounded corners */
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    color: #000;
    background-color: #fff;
    transition: all 0.2s ease;
    padding: 0;
    -moz-appearance: textfield;
}

.code-input-redesign::-webkit-outer-spin-button,
.code-input-redesign::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.code-input-redesign:focus {
    border-color: #E23E57;
    box-shadow: 0 0 0 1px #E23E57; /* Simple pink border focus, no glow */
    outline: none;
}

/* Red Button */
.btn-redesign {
    background-color: #E23E57; /* Brand Red */
    color: white;
    border: none;
    border-radius: 12px; /* Slightly less rounded than pills */
    width: 100%;
    padding: 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(226, 62, 87, 0.25);
    transition: background-color 0.2s;
    margin-top: 20px;
}

.btn-redesign:hover {
    background-color: #c93048;
}

/* Resend Text Link */
.resend-text {
    font-size: 0.95rem;
    color: #333;
}

.btn-text-red {
    background: none;
    border: none;
    color: #E23E57;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-text-red:hover {
    text-decoration: underline;
}

.footer-link {
    margin-top: 60px; /* Push to bottom */
    font-weight: 600;
}
.footer-link a {
    color: #444;
    text-decoration: none;
}

/* --- Success & Animation Effects (Verify Code) --- */

/* 1. Green Success State */
.code-input-redesign.success {
    border-color: #1DB954 !important; /* Force override focus/default */
    color: #1DB954;
    background-color: #e8f5e9;
    transform: scale(1.05); /* Slight pulse */
}

/* 2. Container Adjustment */
#code-inputs {
    position: relative;
    height: 60px; /* Preserve height during collapse */
    transition: gap 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3. Collapse Animation */
#code-inputs.collapsing {
    gap: 0;
}

#code-inputs.collapsing .code-input-redesign {
    width: 0;
    padding: 0;
    border-width: 0;
    opacity: 0;
    margin: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.6, -0.28, 0.735, 0.045); /* "Sucking" in effect */
}

/* 4. Checkmark Icon */
.success-checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(-45deg);
    color: #1DB954;
    font-size: 36px;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(29, 185, 84, 0.4);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy spring */
    transition-delay: 0.2s; /* Wait for collapse to start */
}

#code-inputs.collapsing .success-checkmark {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
}

/* Error Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.code-input-redesign.error {
    border-color: #E23E57;
    background-color: #fff5f7;
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

