/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --primary-color: #3b82f6;
    --text-color: #1e293b;
    --text-light: #64748b;
    --input-bg: rgba(255, 255, 255, 0.6);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background: radial-gradient(circle at 10% 20%, rgb(239, 246, 255) 0%, rgb(219, 228, 255) 90%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    width: 100%;
}

/* Bolas de fondo para efecto de profundidad */
body::before,
body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
}

body::before {
    background: #60a5fa;
    top: -50px;
    left: -50px;
    opacity: 0.4;
}

body::after {
    background: #a78bfa;
    bottom: -50px;
    right: -50px;
    opacity: 0.4;
}

.glass-container {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

/* Brillo superior en el borde */
.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

header {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

p.subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

.full-width {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #334155;
}

.input-glass {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.input-glass:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 1rem;
    }

    .glass-container {
        padding: 1.5rem 1rem;
        border-radius: 12px;
        margin: 0;
        max-width: 100%;
    }

    h1 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
        text-align: center;
        width: 100%;
    }

    .subtitle {
        text-align: center;
        width: 100%;
    }

    .form-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .full-width {
        grid-column: auto;
        width: 100%;
    }

    .form-group {
        width: 100%;
    }

    label {
        display: block;
        width: 100%;
        text-align: left;
    }

    .input-glass {
        padding: 0.8rem;
        font-size: 16px;
        /* Evitar zoom en iOS */
        width: 100%;
        box-sizing: border-box;
    }

    .btn-submit {
        padding: 1rem;
        font-size: 1.1rem;
        width: 100%;
    }
}