/* Immersive UI Dark Theme */
:root {
    --bg-color: #050608;
    --text-color: #e0e0e0;
    --accent-color: #00E0FF;
    --accent-glow: rgba(0, 224, 255, 0.2);
    --glass-bg: rgba(13, 17, 23, 0.33);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: url('https://salvaguarda.es/img/villena.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Atmosphere */
.atmosphere {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(0, 224, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(123, 31, 162, 0.15) 0%, transparent 40%),
        rgba(5, 6, 8, 0.6); /* Overlay más transparente */
    pointer-events: none;
    z-index: 0;
}

.grid-bg {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.2;
    z-index: 0;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 420px;
    max-width: 95%;
    padding: 2.5rem;
    border-radius: 1.5rem;
    position: relative;
    z-index: 20;
    transition: all 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6b7280;
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #4b5563;
    width: 1.25rem;
    height: 1.25rem;
}

input, textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem 0.85rem 3rem;
    color: #fff;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

textarea {
    padding-left: 1rem;
    resize: none;
    height: 100px;
}

input:focus, textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary {
    width: 100%;
    background: #0091B2;
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.85rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(8, 145, 178, 0.3);
    margin-top: 1rem;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Feedback Messages */
.message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 11px;
    font-style: italic;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.message-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Additional Styles */
.text-center { text-align: center; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-8 { margin-top: 2rem; }
.pt-6 { padding-top: 1.5rem; }
.border-t { border-top: 1px solid rgba(255,255,255,0.05); }

.toggle-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-btn:hover {
    color: var(--accent-color);
}

.accent-text { color: var(--accent-color); font-weight: 500; }

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

/* Decorative Info */
.system-info {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.4;
    font-size: 9px;
    font-family: monospace;
    z-index: 10;
}
@media (max-width: 768px) { 
    .system-info { justify-content: center; } 
    .hidden-mobile { display: none; }
}
