﻿:root {
    --brand: #fb7305;
    --brand-2: #ff9d42;
    --dark: #0f1216;
    --text: #23262b;
    --muted: #6b7280;
    --soft: #f6f7fb;
    --border-radius: 8px;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--soft) 0%, #ffffff 100%);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    line-height: 1.5;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.auth-container {
    width: 100%;
    max-width: 550px; /* Ampliado de 480px a 550px */
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.auth-header {
    background: linear-gradient(135deg, var(--dark) 0%, #2c3e50 100%);
    color: white;
    padding: 30px 25px; /* Aumentado padding horizontal */
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .auth-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('/img/bg/001.webp') no-repeat center center;
        background-size: cover;
        opacity: 0.15;
    }

.header-content {
    position: relative;
    z-index: 2;
}

.auth-icon {
    width: 75px; /* Ligeramente más grande */
    height: 75px;
    background: rgba(251, 115, 5, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(251, 115, 5, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.auth-icon i {
    font-size: 32px; /* Ligeramente más grande */
    color: var(--brand);
}

.auth-title {
    font-size: 24px; /* Más grande para mejor jerarquía */
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: 15px; /* Un poco más grande */
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.5; /* Mejor interlineado */
    max-width: 400px;
    margin: 0 auto;
}

.auth-body {
    padding: 30px 25px; /* Más espacio interno */
}

.instructions {
    background: rgba(251, 115, 5, 0.05);
    border-radius: var(--border-radius);
    padding: 20px; /* Más espacio interno */
    margin-bottom: 25px;
    border-left: 4px solid var(--brand);
}

.instructions-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px; /* Más espacio */
    display: flex;
    align-items: center;
    font-size: 16px; /* Un poco más grande */
}

    .instructions-title i {
        color: var(--brand);
        margin-right: 10px;
        font-size: 18px; /* Un poco más grande */
    }

.instructions-text {
    font-size: 14px; /* Un poco más grande */
    color: var(--muted);
    line-height: 1.6; /* Mejor interlineado */
}

.form-group {
    margin-bottom: 20px;
}

.form-floating {
    margin-bottom: 1.5rem; /* Un poco más de espacio */
}

    .form-floating > .form-control {
        border: 2px solid #e2e8f0;
        border-radius: var(--border-radius);
        font-size: 15px; /* Texto un poco más grande */
        transition: all 0.2s ease;
        height: calc(3.2rem + 2px); /* Un poco más alto */
        padding: 1rem 0.9rem; /* Más padding horizontal */
    }

        .form-floating > .form-control:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 0.25rem rgba(251, 115, 5, 0.25);
        }

        .form-floating > .form-control:hover:not(:focus) {
            border-color: #adb5bd;
        }

    .form-floating > label {
        color: var(--muted);
        font-size: 14px;
        transition: all 0.2s ease;
        padding: 1rem 0.9rem; /* Más padding horizontal */
    }

    .form-floating > .form-control:focus ~ label,
    .form-floating > .form-control:not(:placeholder-shown) ~ label {
        color: var(--brand);
        font-weight: 500;
    }

.form-text {
    font-size: 13px; /* Un poco más grande */
    color: var(--muted);
    margin-top: 8px; /* Más espacio */
    display: block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    border: none;
    padding: 14px; /* Un poco más de padding */
    font-size: 15px; /* Texto un poco más grande */
    font-weight: 600;
    border-radius: var(--border-radius);
    width: 100%;
    color: white;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(251, 115, 5, 0.3);
    }

    .btn-primary:disabled {
        opacity: 0.7;
        transform: none;
        box-shadow: none;
    }

.success-message {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: var(--border-radius);
    padding: 20px; /* Más espacio interno */
    margin-top: 25px; /* Más espacio */
    text-align: center;
    display: none;
}

.success-icon {
    color: #27ae60;
    font-size: 42px; /* Un poco más grande */
    margin-bottom: 15px; /* Más espacio */
}

.success-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px; /* Más espacio */
    font-size: 18px; /* Un poco más grande */
}

.success-text {
    color: var(--muted);
    font-size: 14px; /* Un poco más grande */
    line-height: 1.6; /* Mejor interlineado */
}

.auth-footer {
    text-align: center;
    margin-top: 30px; /* Más espacio */
    padding-top: 25px; /* Más espacio */
    border-top: 1px solid #e2e8f0;
}

.footer-text {
    font-size: 14px; /* Un poco más grande */
    color: var(--muted);
    margin-bottom: 10px; /* Más espacio */
}

.footer-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .footer-link:hover {
        color: var(--brand-2);
        text-decoration: underline;
    }

/* Footer general simplificado */
.global-footer {
    background: var(--dark);
    color: white;
    padding: 18px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
}

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 12px;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            color: var(--brand);
        }

.copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-container {
        max-width: 100%; /* Ocupa todo el ancho en móviles */
    }

    .auth-header {
        padding: 25px 20px;
    }

    .auth-body {
        padding: 25px 20px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-icon {
        width: 65px;
        height: 65px;
    }

        .auth-icon i {
            font-size: 28px;
        }

    .instructions {
        padding: 18px;
    }

    .success-message {
        padding: 18px;
    }
}

@media (max-width: 360px) {
    .auth-header {
        padding: 20px 15px;
    }

    .auth-body {
        padding: 20px 15px;
    }

    .auth-title {
        font-size: 20px;
    }

    .auth-subtitle {
        font-size: 14px;
    }

    .instructions-title {
        font-size: 15px;
    }

    .instructions-text {
        font-size: 13px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* Media queries para dispositivos más grandes */
@media (min-width: 768px) {
    .main-content {
        padding: 20px;
    }

    .auth-container {
        margin: 20px 0;
    }

    .auth-header {
        padding: 35px 30px;
    }

    .auth-title {
        font-size: 26px;
    }

    .auth-subtitle {
        font-size: 16px;
    }

    .auth-body {
        padding: 35px 30px;
    }
}

@media (min-width: 992px) {
    .auth-container {
        max-width: 600px; /* Aún más ancho en desktop */
    }
}