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

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

body {
    background-color: #005da3;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
}

.registro-card {
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
    padding: 30px;
    background-color: #005da3;
    color: #ffffff;
    border-radius: 12px;
}

.logo-container {
    text-align: center;
    margin-bottom: 24px;
}

.logo-container img {
    max-width: 250px;
    height: auto;
    border-radius: 4px;
    display: inline-block;
}

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

.header-titles h1 {
    font-size: 23px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.header-titles p {
    font-size: 16px;
    color: #d1e3f8;
    font-weight: 400;
}

.text-muted-custom {
    color: #d1e3f8 !important;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.35);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0 25px 0;
}

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

.form-check-label {
    font-size: 0.9em;
    color: #e9ecef;
    line-height: 1.45;
    cursor: pointer;
    user-select: none;
}

.btn-contraste {
    width: 100%;
    background-color: #ff9800;
    border: 1px solid #ff9800;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05em;
    padding: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-contraste:hover, .btn-contraste:focus {
    background-color: #e68a00;
    border-color: #e68a00;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.45);
}

.btn-contraste:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alert Box */
.alert-message {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13.5px;
    margin-bottom: 20px;
    display: none;
    line-height: 1.4;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* Success View - Welcome Screen */
.success-view {
    text-align: center;
    display: none;
    animation: fadeIn 0.4s ease;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px 24px;
    margin: 15px 0 20px;
    backdrop-filter: blur(4px);
}

.welcome-icon {
    width: 64px;
    height: 64px;
    background-color: #ff9800;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(255, 152, 0, 0.4);
}

.welcome-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.attendee-lead {
    font-size: 15.5px;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 16px;
}

.welcome-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 18px auto;
    width: 80%;
}

.email-instruction {
    font-size: 14px;
    color: #d1e3f8;
    margin-bottom: 8px;
}

.email-pill {
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
    color: #ffcc80;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin: 8px 0 14px;
    word-break: break-all;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.spam-hint {
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.4;
}

.btn-new {
    background: transparent;
    color: #d1e3f8;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-new:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border-color: #ffffff;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: none;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    body {
        padding: 0;
    }
    .registro-card {
        margin: 0;
        padding: 30px 20px;
        border-radius: 0;
        min-height: 100vh;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
