﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: url('/images/DSC0303.webp') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.register-container {
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: #fff; /* texto general fuera de inputs en blanco */
}

.form-content {
    display: flex;
    gap: 2rem;
}

.form-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-col {
    flex: 1;
}

/* Labels generales (no flotantes) en blanco */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

/* Inputs y selects: fondo blanco, texto negro */
input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    background-color: #fff;
    color: #000;
}

    input:focus, select:focus {
        border-color: #457b9d;
        outline: none;
    }

    /* Placeholder invisible */
    input::placeholder {
        color: transparent;
    }

.text-danger {
    color: #ff6b6b; /* rojo para errores */
    font-size: 0.85rem;
}

/* Botones */
.btn-primary, .btn-secondary {
    border: 2px solid white !important;
    border-radius: 25px;
    font-weight: 500;
    background-color: transparent !important;
    color: #fff;
    padding: 0.8rem;
    width: 100%;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

    .btn-primary:hover {
        background-color: #0056b3 !important;
        color: white !important;
        border-color: white !important;
    }

.btn-secondary {
    color: #ddd;
}

    .btn-secondary:hover {
        background-color: #999 !important;
        color: white !important;
        border-color: white !important;
    }

    .btn-primary i, .btn-secondary i {
        transition: transform 0.3s ease;
    }

    .btn-primary:hover i, .btn-secondary:hover i {
        transform: scale(1.3);
        color: white !important;
    }

    .btn-primary:active, .btn-secondary:active {
        animation: bounce 0.2s;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.button-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0.5rem auto;
}

    .button-row > * {
        flex: 1;
        max-width: 180px;
    }

.footer-text {
    text-align: center;
    font-size: 0.9rem;
    color: #ddd;
}

.photo-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

    /* Etiqueta en sección foto: blanca */
    .photo-section label {
        font-weight: 600;
        color: #fff;
    }

#imagePreview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #457b9d;
    display: none;
}

/* Floating input groups */

.floating-group {
    position: relative;
    margin-bottom: 1rem;
}

/* Inputs flotantes: fondo blanco, texto negro */
.floating-input {
    width: 100%;
    padding: 1.2rem 0.75rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    .floating-input:focus,
    .floating-input:not(:placeholder-shown) {
        border-color: #457b9d;
    }

    .floating-input::placeholder {
        color: rgba(0, 123, 255, 0.25) !important;
    }

.btn-primary {
    font-size: 1.05rem; /* un poco más grande */
}


/* Labels flotantes */
/* Normal: color gris claro para que destaque sobre fondo oscuro */
.floating-label {
    position: absolute;
    left: 0.75rem;
    top: 1.1rem;
    color: darkslateblue;
    font-size: 1rem;
    pointer-events: none;
    background-color: transparent;
    padding: 0 4px;
    transition: 0.2s ease all;
}

/* Cuando el input está enfocado o con contenido */
/* Fondo oscuro con texto blanco, borde celeste */
.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: -0.5rem;
    left: 0.65rem;
    font-size: 0.8rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid #457b9d;
    border-radius: 8px;
    padding: 0 6px;
}
