:root {
    --primary-red: #e53935;
    --dark-red: #d32f2f;
    --header-red-start: #9a2226;
    --header-red-end: #bd2429;
    --white: #ffffff;
    --light-gray: #f7f7f7;
    --dark-gray: #333333;
    --medium-gray: #888888;
    --icon-gray: #b5b5b5;
    --blue: #1e64b4;
    --green: #3e9b48;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-light: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-medium: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --shadow-strong: 0 15px 35px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--dark-gray);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 90px;
}

/* Header Rojo con Degradado - Mismo estilo que index.html */
.navbar {
    background: linear-gradient(
        135deg,
        var(--header-red-start) 0%,
        var(--header-red-end) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar.scrolled {
    padding: 6px 0;
    background: linear-gradient(
        135deg,
        var(--header-red-start) 0%,
        var(--header-red-end) 100%
    );
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.logo {
    height: 50px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.navbar-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 10px 16px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

/* Auth Container Styles */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    display: flex;
    min-height: 600px;
    position: relative;
}

.auth-image {
    flex: 1;
    background: linear-gradient(rgba(229, 57, 53, 0.1), rgba(211, 47, 47, 0.1)), 
                url('../assets/images/bg_login.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(126, 126, 126, 0.8) 0%,
        rgba(169, 166, 166, 0.9) 100%
    );
    z-index: 1;
}

.auth-image-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
}

.auth-image h2 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.auth-image p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.auth-features {
    text-align: left;
    margin-top: 30px;
}

.auth-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

.auth-feature i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-forms {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.auth-tab {
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 500;
    color: var(--medium-gray);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.auth-tab.active {
    color: var(--primary-red);
    border-bottom: 3px solid var(--primary-red);
}

.auth-form {
    display: none;
    animation: fadeIn 0.5s;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.input-group-text {
    background: white;
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.password-toggle {
    cursor: pointer;
    background: white;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: var(--medium-gray);
    transition: all 0.3s;
}

.password-toggle:hover {
    color: var(--primary-red);
}

.btn-auth {
    background: linear-gradient(
        135deg,
        var(--primary-red) 0%,
        var(--dark-red) 100%
    );
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.4);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 10px;
}

.btn-auth::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.6s;
}

.btn-auth:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(229, 57, 53, 0.5);
}

.btn-auth:hover::before {
    left: 100%;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--medium-gray);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #eee;
}

.auth-divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

.social-auth {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.social-btn.facebook {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.social-btn.google {
    background: linear-gradient(135deg, #db4a39 0%, #c23321 100%);
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.form-text {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.form-check-label a {
    color: var(--primary-red);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Footer Styles - Mismo que index.html */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .auth-card {
        flex-direction: column;
        max-width: 600px;
    }
    
    .auth-image {
        padding: 30px;
        min-height: 250px;
    }
    
    .auth-image h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 100px;
    }
    
    .auth-forms {
        padding: 30px 20px;
    }
    
    .auth-tab {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .auth-image {
        padding: 20px;
    }
    
    .auth-image h2 {
        font-size: 1.5rem;
    }
    
    .auth-image p {
        font-size: 1rem;
    }
}


.google-btn-custom {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    color: #444 !important;
    border-radius: 50px !important;
    border: 1px solid #ddd !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

.google-btn-custom:hover {
    background: #f8f8f8 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: white;
    color: #444;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.social-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-auth-btn.facebook-custom {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.social-auth-btn.facebook-custom:hover {
    background: #166fe5;
}

.social-auth-btn.google-custom {
    background: white;
    border-color: #ddd;
    color: #444;
}

.social-auth-btn.google-custom:hover {
    background: #f8f8f8;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-red);
}

.alert {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.g_id_signin > div {
    min-width: 250px; /* fuerza un ancho mínimo para el iframe */
}