﻿:root {
    --shutto-green: #46d72d;
    --shutto-dark: #121212;
    --shutto-light: #f8f9fa;
    --shutto-gray: #2a2a2a;
    --shutto-border: #3a3a3a;
    --shutto-green-light: rgba(70, 215, 45, 0.1);
    --shutto-green-transparent: rgba(70, 215, 45, 0.05);
    --text-muted: rgba(248, 249, 250, 0.6);
}

/* Estilos base con efectos de humo verde */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--shutto-dark);
    color: var(--shutto-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

    body::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 70% 30%, rgba(70, 215, 45, 0.08) 0%, transparent 25%), radial-gradient(circle at 30% 70%, rgba(70, 215, 45, 0.05) 0%, transparent 25%);
        animation: rotate 20s linear infinite;
        z-index: -1;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Contenedor principal */
.forgot-password-container {
    background-color: rgba(18, 18, 18, 0.95);
    border-radius: 15px;
    padding: 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 10px 30px rgba(70, 215, 45, 0.1), 0 0 0 1px rgba(70, 215, 45, 0.1);
    border: 1px solid rgba(70, 215, 45, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

    .forgot-password-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--shutto-green), transparent);
    }

/* Logo */
.logo-container {
    margin-bottom: 1.5rem;
    text-align: center;
}

.logo {
    width: 160px;
    filter: drop-shadow(0 0 8px rgba(70, 215, 45, 0.4));
    transition: transform 0.3s ease;
}

    .logo:hover {
        transform: scale(1.05);
    }

/* Textos */
h1 {
    color: var(--shutto-green);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(70, 215, 45, 0.3);
}

.subtext {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Campo de email */
.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
        color: var(--shutto-light);
        font-weight: 400;
    }

    .form-group input[type="email"] {
        width: 100%;
        padding: 0.8rem 1.2rem;
        border-radius: 10px;
        border: 1px solid var(--shutto-border);
        background-color: rgba(30, 30, 30, 0.8);
        color: var(--shutto-light);
        transition: all 0.3s ease;
        font-size: 0.95rem;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
        box-sizing: border-box;
    }

        .form-group input[type="email"]:focus {
            border-color: var(--shutto-green);
            box-shadow: 0 0 0 3px rgba(70, 215, 45, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.3);
            background-color: rgba(40, 40, 40, 0.8);
            outline: none;
        }

/* Botón principal */
.btn-primary {
    background-color: var(--shutto-green);
    color: var(--shutto-dark);
    border: none;
    border-radius: 10px;
    padding: 0.9rem;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.3rem;
    box-shadow: 0 4px 15px rgba(70, 215, 45, 0.3);
}

    .btn-primary:hover {
        background-color: #3ac022;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(70, 215, 45, 0.4);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

/* Enlaces de navegación */
.auth-links-container {
    margin-top: 1.5rem;
    border-top: 1px solid var(--shutto-border);
    padding-top: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-link-wrapper {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

    .auth-link-wrapper:hover {
        background-color: var(--shutto-green-transparent);
    }

.auth-link-icon {
    color: var(--shutto-green);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.auth-link-content {
    display: flex;
    flex-direction: column;
}

.auth-link-label {
    font-size: 0.7rem;
    color: var(--shutto-light);
    opacity: 0.7;
    margin-bottom: 2px;
}

.auth-link {
    color: var(--shutto-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .auth-link:hover {
        color: #a0f090;
        text-decoration: underline;
    }

/* Mensajes de error */
.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
    min-height: 1rem;
}

/* Botón de lenguaje */
.navigation-buttons {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.language-button {
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid var(--shutto-border);
    color: var(--shutto-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .language-button:hover {
        background-color: var(--shutto-green);
        color: var(--shutto-dark);
        border-color: var(--shutto-green);
        transform: scale(1.05);
    }

/* Placeholders */
::placeholder {
    color: rgba(248, 249, 250, 0.5) !important;
    font-weight: 300;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--shutto-light) !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(40, 40, 40, 0.8) inset !important;
    border: 1px solid var(--shutto-border);
}

/* Responsive */
@media (max-width: 576px) {
    .forgot-password-container {
        padding: 1.5rem;
        width: 95%;
    }

    h1 {
        font-size: 1.5rem;
    }

    .logo {
        width: 140px;
    }

    .auth-links-container {
        flex-direction: column;
        gap: 0.6rem;
    }

    .auth-link-wrapper {
        justify-content: center;
        padding: 0.3rem 0.5rem;
    }

    .navigation-buttons {
        top: 1rem;
        right: 1rem;
    }
}

/* Estilos para la alerta personalizada */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.custom-alert-box {
    background-color: #121212;
    border: 1px solid #46d72d;
    border-radius: 12px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(70, 215, 45, 0.2);
    text-align: center;
}

.alert-icon {
    font-size: 3rem;
    color: #46d72d;
    margin-bottom: 1rem;
}

.alert-content h4 {
    color: #46d72d;
    margin-bottom: 1rem;
}

.alert-content p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.alert-email {
    font-weight: bold;
    color: #46d72d;
    margin: 0.8rem 0;
}

.alert-close-btn {
    background-color: #46d72d;
    color: #121212;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .alert-close-btn:hover {
        background-color: #3ac022;
        transform: translateY(-2px);
    }

/* Spinner para el botón */
.spinner-border {
    vertical-align: middle;
    margin-right: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* Estilos para el loader de redirección */
.alert-redirect-message {
    margin-top: 1rem;
    color: var(--shutto-light);
    opacity: 0.8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .alert-redirect-message .spinner {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Estilos para el loader del botón */
.spinner-border {
    vertical-align: middle;
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}