:root {
    --primary-color: #25D366;
    --secondary-color: rgb(6, 185, 234);
    --background-color: rgb(18, 18, 18);
    --card-background: #1E1E1E;
    --text-primary: rgb(252, 252, 252);
    --text-secondary: #B0B0B0;
    --highlight-color: #FFCC00;
    --error-color: #8d0000;
    --info-color: #0670ea;
    --delete-color: rgb(119, 1, 1);
    --border-color: #333333;
    --box-shadow: rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100vh;
}

body {
    background-color: var(--background-color) !important;
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: var(--text-primary);
    height: 100vh;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 3%;
    backdrop-filter: blur(10px);
    background: var(--background-color);
    transition: all 0.3s ease;
    z-index: 1001;
}

.navbar.scrolled {
    padding: 0.5rem 5%;
    background: rgba(15, 23, 42, 0.95);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--background-color) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.header-logo img {
    position: relative;
    top: -0.25rem;
    width: 3rem;
}

.header-logo span {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1.7rem;
}

.main-container {
    max-width: 1140px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    padding: 2rem;
}

.section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-container {
    margin-top: 9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--box-shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.card-header {
    margin-bottom: 1.5rem;
}

.logo-container img {
    width: 8rem;
}

h1 {
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 1rem;
}

p {
    color: var(--text-secondary);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
}

.input-field {
    font-family: "Rubik", sans-serif !important;
    width: 100%;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: #222;
    color: var(--text-primary);
    font-size: 1rem;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.floating-label {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.15s;
}

.input-field:focus+.floating-label,
.input-field:not(:placeholder-shown)+.floating-label {
    top: -0.89rem;
    font-size: 0.75rem;
    color: var(--primary-color);
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.togglePassword {
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 0.7rem;
    right: 10px;
    font-size: 1.2rem;
    color: var(--text-primary);
    padding: 5px;
}

.togglePassword:hover {
    opacity: 0.7;
}

.account-label {
    margin-top: 0.8rem;
}

.account-label a {
    font-family: 'Rubik', sans-serif;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.account-label a:hover {
    color: var(--text-primary);
}

.card-button {
    font-family: 'Rubik', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-primary);
    padding: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.card-button:hover {
    background-color: var(--primary-color);
}

.alert {
    text-align: center;
    background-color: var(--info-color);
    /* Color de fondo amarillo */
    color: var(--text-primary);
    border-radius: 8px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.error {
    background-color: var(--error-color);
    border: 2px solid var(--border-color);
}

.alert a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
}

/* SweetAlert2 Custom Styles */
.swal2-popup {
    font-family: 'Rubik', sans-serif !important;
    background: var(--background-color) !important;
    color: var(--text-primary) !important;
}

.swal2-title,
.swal2-html-container {
    color: var(--text-primary) !important;
}

.swal2-confirm {
    font-family: 'Rubik', sans-serif !important;
    background: var(--secondary-color) !important;
}

.swal2-confirm:hover {
    background: var(--primary-color) !important;
}

.swal2-cancel {
    background: #334155 !important;
}


/*
* MediaQuery
*/
@media (max-width: 768px) {
    .main-container {
        max-width: 480px;
        padding: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 400px;
        flex-direction: column;
        padding: 5rem 2rem;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}
