/* =====================================
   FORMULARIO DE REGISTRO DEPORTISTA
   DISEŅO OSCURO PROFESIONAL 
   ===================================== */

/* ===== FONDO Y ESTRUCTURA GENERAL ===== */
body {
    background: url('/imagenes/login.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Poppins', sans-serif;
    color: #e2e8f0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* CENTRADO VERTICAL */
    padding: 20px;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container-main {
    background: rgba(17, 25, 40, 0.88);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    max-width: 950px;
    width: 100%;
    padding: 40px;
    animation: fadeIn 0.6s ease;
    overflow-y: auto;
    max-height: 90vh; /*Evita que se corte si es muy largo */
}

/* ===== TITULOS ===== */
h4 {
    font-weight: 600;
    color: #38bdf8;
    border-left: 4px solid #38bdf8;
    padding-left: 12px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h5 {
    color: #60a5fa;
    font-weight: 500;
    margin-bottom: 15px;
}

/* ===== LABELS ===== */
.form-label {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===== INPUTS ===== */
.form-control, .form-select, textarea {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

    .form-control:focus, .form-select:focus, textarea:focus {
        background-color: rgba(255, 255, 255, 0.15);
        border-color: #38bdf8;
        box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.25);
        outline: none;
        color: #ffffff;
    }

/* ===== INPUT FILE ===== */
input[type="file"] {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
}

    input[type="file"]::-webkit-file-upload-button {
        background-color: #38bdf8;
        color: #fff;
        border: none;
        border-radius: 6px;
        padding: 6px 12px;
        margin-right: 10px;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        input[type="file"]::-webkit-file-upload-button:hover {
            background-color: #0ea5e9;
        }

/* ===== CHECKBOX ===== */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid #64748b;
    cursor: pointer;
}

.form-check-label {
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* ===== TARJETA DE DEPORTISTA ===== */
.deportista-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    position: relative;
    transition: all 0.3s ease;
}

    .deportista-card:hover {
        background-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

/* ===== BOToN ELIMINAR DEPORTISTA ===== */
.btn-remove-deportista {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #f87171;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .btn-remove-deportista:hover {
        color: #ef4444;
    }

/* ===== BOTONES ===== */
.btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #38bdf8;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #0ea5e9;
    }

.btn-secondary {
    background-color: #64748b;
    color: #fff;
}

    .btn-secondary:hover {
        background-color: #475569;
    }

/* ===== VALIDACIONES ===== */
.text-danger {
    font-size: 0.85rem;
    color: #f87171 !important;
}

/* ===== ESPACIADO ENTRE CAMPOS ===== */
.row.g-3 {
    row-gap: 1rem;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
.container-main::-webkit-scrollbar {
    width: 8px;
}

.container-main::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.6);
    border-radius: 8px;
}

    .container-main::-webkit-scrollbar-thumb:hover {
        background: rgba(56, 189, 248, 0.9);
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container-main {
        padding: 25px 20px;
        margin: 15px;
        max-height: 95vh;
    }

    h4 {
        font-size: 1.1rem;
    }

    h5 {
        font-size: 1rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button, input, select, textarea {
    transition: all 0.2s ease-in-out;
}

    button:active {
        transform: scale(0.97);
    }
