/* Estilos base */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    background: url('../images/logos/fondor.webp') no-repeat center center fixed;
    background-size: 100% 180%;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.45);
    z-index: -1;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    color: #333;
}

.form-group {
    position: relative;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

.switch-form {
    text-align: center;
    margin-top: 15px;
}

.switch-form a {
    color: #007bff;
    text-decoration: none;
}

.switch-form a:hover {
    text-decoration: underline;
}

.error-message {
    color: red;
    text-align: center;
    margin-bottom: 15px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 18px;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #333;
    color: #fff;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    animation: fade-in 0.5s ease-in-out, fade-out 0.5s ease-in-out 4.5s forwards;
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.captcha-image {
    border: 1px solid #ddd;
    border-radius: 4px;
}


.form-group.captcha-group {
    margin-bottom: 20px;
}
.captcha-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}


/* Si quieres que el botón sea aún más discreto */
.captcha-refresh.minimal {
    background: transparent;
    border: none;
    padding: 5px;
    color: #666;
}

.captcha-refresh.minimal:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #007bff;
}

.captcha-refresh {
    background: transparent;
    color: #666;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.captcha-refresh:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #007bff;
    transform: rotate(90deg);
}

.captcha-refresh:active {
    transform: rotate(0deg);
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

