:root {
    --bg1: #0f172a;
    /* dark navy */
    --bg2: #0ea5a4;
    /* teal */
    --card: #0b1220;
    --accent: #7c3aed;
    --glass: rgba(255, 255, 255, 0.06);
    --muted: rgba(255, 255, 255, 0.6);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: black;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.container {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 36px;
    align-items: center;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left: illustration + welcome */
.hero {
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    box-shadow: 0 6px 30px rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    overflow: hidden;
    color: black
}

.hero h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.05
}

.hero p {
    margin: 0;
}

.art {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.chip {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 13px
}

/* Right: login card */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
    min-height: 400px;
}

.brand {
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
    text-align: center;
}

.brand .logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--bg2));
    display: grid;
    place-items: center;
    font-weight: 700
}

.brand h2 {
    margin: 0;
    font-size: 16px;
    text-align: center;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px
}

.input {
    position: relative;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.input label {
    position: absolute;
    left: 12px;
    top: 10px;
    font-size: 13px;
    color: var(--muted);
    pointer-events: none;
    transition: all .18s ease;
    color: black;
}

.input input {
    appearance: none;
    border: 1px solid #ccc;
    background: transparent;
    padding: 30px 15px;
    padding-bottom: 6px;
    color: inherit;
    width: 100%;
    font-size: 15px
}

.input input:focus {
    outline: none;
    border: 1px solid blue;
}

.input input:focus {
    border: 1px solid blue;
}

/* Cuando ya tiene texto (activo) */
.input.filled input {
    border: 1px solid blue;
}

.input input:focus+.focus-ring,
.input input:focus~label {
    top: -8px;
    font-size: 12px;
    color: black;
}

.input.filled label {
    top: -8px;
    font-size: 12px;
    color: black
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 13px 14px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 600
}

.btn.primary {
    background: blue;
    color: white;
    box-shadow: 0 8px 20px rgba(14, 165, 164, 0.08)
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted)
}

.btn.google {
    background: black;
    color: white;
    border: 0;
    padding: 13px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600
}

.or {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px
}

.or:before,
.or:after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px
}

.footer {
    margin-top: 8px;
    font-size: 13px;
    text-align: center
}

.link {
    color: blue;
    text-decoration: none
}

/* small screens */
@media (max-width:900px) {
    .container {
        max-width: 720px;
        display: flex;
        flex-direction: column;
        height: 100%;
        margin: 10px;
    }
}

@media (max-width:420px) {
    .container {
        padding: 6px
    }

    .card {
        padding: 16px
    }

    .hero {
        padding: 18px
    }

    .brand h2 {
        font-size: 15px
    }
}

/* subtle interactive micro-animations */
.btn:active {
    transform: translateY(1px)
}

.input input:focus~.focus-ring {
    opacity: 1;
    transform: scaleX(1)
}

.focus-ring {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--bg2));
    opacity: 0;
    transform-origin: left center;
    transform: scaleX(0);
    transition: all .22s ease;
    border-radius: 0 0 10px 10px
}

.loading-container {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    animation: spin 1s linear infinite;
}

/* Animación de giro */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}