:root {
    /* Default Theme (Modern Purple) */
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --text-color: #ffffff;
    --bg-gradient: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    --glass-bg: rgba(20, 20, 30, 0.85);
    /* Más opaco para lectura */
    --glass-border: rgba(255, 255, 255, 0.2);
    --input-bg: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Theme: High Contrast (Light) */
body.theme-light {
    --primary-color: #0056b3;
    --secondary-color: #004494;
    --text-color: #000000;
    --bg-gradient: #f0f2f5;
    --glass-bg: #ffffff;
    --glass-border: #cccccc;
    --input-bg: #e9ecef;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Theme: High Contrast (Dark) */
body.theme-contrast {
    --primary-color: #ffd700;
    --secondary-color: #ffaa00;
    --text-color: #ffffff;
    --bg-gradient: #000000;
    --glass-bg: #1a1a1a;
    --glass-border: #ffffff;
    --input-bg: #333333;
    --card-shadow: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

/* Background Animation */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.globe-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.globe-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

.globe-3 {
    width: 200px;
    height: 200px;
    background: #ff0055;
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

.container {
    width: 90%;
    max-width: 450px;
    position: relative;
    z-index: 10;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s ease;
}

h1 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

h2 {
    font-weight: 600;
}

p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Forms */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

input,
select {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

input:focus,
select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(37, 117, 252, 0.3);
}

label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
    background: transparent;
}

input:focus~label,
input:not(:placeholder-shown)~label {
    transform: translateY(-2.5rem);
    font-size: 0.85rem;
    color: var(--secondary-color);
    left: 0.5rem;
}

/* Buttons */
button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #FF9966, #FF5E62);
    /* Orange gradient */
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 98, 0.3);
    opacity: 0.9;
}

.btn-text {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.btn-text:hover {
    color: white;
    text-decoration: underline;
}

/* Dashboard Specifics */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.user-info h2 {
    font-size: 1.4rem;
    margin-bottom: 0;
}

.user-info p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.points-badge {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: #ffd700;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.points-badge span {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
}

.points-badge small {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1.5rem 0;
}

.coupon-area h3 {
    margin-bottom: 0.5rem;
}

.coupon-area .input-group {
    margin-top: 1.5rem;
}

.message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

.success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Utilities */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}