.body-container {
    background: url("/static/img/Screenshot_3.png") no-repeat center fixed;
    background-size: cover;
    height: 100vh;
    font-family: 'Playfair Display', sans-serif;
}
    
.title {
    text-align: center;
    color: black;
    font-family: 'Playfair Display', Arial, sans-serif;
    font-size: 50px;
    margin-top: 20px;
    text-shadow: 2px 2px 4px #000000;
    font-weight: bold;
    text-shadow: 0 0 8px white, 0 0 1px white, 0 0 1px white;
}

.register-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
}

.register-container form {
    padding: 35px 40px;          
    border-radius: 12px;         
    box-shadow: 0 0 18px #000;   
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 350px;                
}

.register-container form div {
    margin-bottom: 18px;
    width: 100%
}

.register-container label {
    color: gray;
    font-weight: bold;
    font-size: 18px;
}

.floating-label {
    position: relative;
    margin-bottom: 18px;
    width: 100%;
}

.floating-label input {
    width: 100%;
    padding: 12px 10px 12px 10px;
    border-radius: 6px;
    border: 1px solid #444;
    color: black;
    font-size: 16px;
    box-sizing: border-box;
}

.floating-label label {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
    background: transparent;
    transition: 0.2s ease all;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: -18px;
    left: 8px;
    font-size: 13px;
    color: black;
    padding: 0 4px;
}

.btn-style {
    background: none;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Playfair Display';
}

.btn-style:hover {
    background: skyblue;
    box-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px white;
}

.centered-link {
    text-decoration: none;
    font-size: 20px;
    font-family: 'Playfair Display', 'Arial Narrow', Arial, sans-serif;
    color: black;
}

.register-container form {
    background-size: 400% 400%;
    border-radius: 12px;
    box-shadow: 0 0 18px #000;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 350px;
}

.error-message {
    margin: 10px 0;
    padding: 14px 20px;
    text-align: center;
    background: #ffeaea;
    color: #b71c1c;
    font-size: 1.1em;
    border-radius: 8px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    box-shadow: 0 2px 12px rgba(183,28,28,0.08);
    width: 100%;
    box-sizing: border-box;
    display: block;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.success-message {
    margin: 12px auto;
    padding: 18px 25px;
    text-align: center;
    background: #eaf6ff;
    color: #1e3c72;
    font-size: 1.2em;
    border-radius: 8px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    box-shadow: 0 2px 12px rgba(30,60,114,0.08);
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    display: block;
}

/* diseño responsivo */

/* Móviles (max-width: 480px) */
@media (max-width: 480px) {
    .body-container {
        background-attachment: scroll; /* Mejor para móviles */
        background-size: cover;
        height: auto;
        padding: 15px;
    }

    .title {
        font-size: 28px;
        margin-top: 10px;
        text-shadow: none;
    }

    .register-container form {
        width: 100%;
        max-width: 350px;
        padding: 20px;
        box-shadow: none;
    }

    .floating-label input {
        font-size: 14px;
        padding: 10px 8px;
    }

    .floating-label label {
        font-size: 14px;
    }

    .btn-style {
        font-size: 16px;
        padding: 8px 16px;
    }

    .centered-link {
        font-size: 16px;
        margin-top: 15px;
    }

    .error-message, .success-message {
        font-size: 1em;
        padding: 12px 16px;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .title {
        font-size: 38px;
    }

    .register-container form {
        width: 90%;
        max-width: 400px;
        padding: 30px;
    }

    .floating-label input {
        font-size: 15px;
    }

    .btn-style {
        font-size: 17px;
        padding: 10px 18px;
    }
}
