:root {
    --bg-main: #14171c;
    --accent: #4b6563;
    --accent-soft: #1fbad633;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --danger: #f97373;
    --key-bg: #05070c;
    --key-border: #1f2937;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
    background: radial-gradient(#1fbad6 100%);
    color: var(--text-main);
}

/* Layout general */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 16px 180px; /* deja espacio para el teclado */
}

/* Tarjeta central */
.login-card {
    text-align: center;
    max-width: 460px;
    width: 100%;
}

/* Logo tipo Aronium */
.logo-wrapper {
    margin-bottom: 15px;
}

.logo-hex {
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
    border-radius: 28px;
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--accent-soft);
}

.logo-letter {
    font-size: 56px;
    color: var(--accent);
    font-weight: 600;
}

.logo-name {
    font-size: 70px;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-align: center;
    display: inline-block;
    width: auto;
    margin: 8px 0 12px;
}

/* Texto "Iniciar sesión" */
.login-title {
    font-size: 44px;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

/* Campos */
.field-group {
    width: 100%;
    max-width: 380px;
    text-align: left;
}

.label-input {
    font-size: 30px;
    color: var(--text-main);
    margin-bottom: 4px;
    display: block;
}

.input-wrapper {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: #05070b;
    border-radius: 2px;
    border: 1px solid #29323f;
    overflow: hidden;
}

#usuario,
#password {
    flex: 1;
    width: 100%;
    height: 100%;
    padding: 0 11px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 26px;
    display: block;
}

#usuario::placeholder,
#password::placeholder {
    color: #4b5563;
}

#usuario {
    text-transform: uppercase;
}

#usuario::placeholder {
    text-transform: none;
}

/* Fila especial para contraseña (input + flecha) */
.password-row {
    position: relative;
    width: 100%;
}

.password-row .input-wrapper {
    width: 100%;
    height: 80px;
}

/* Botón flecha base */
.btn-go {
    border: none;
    outline: none;
    background: #0b1620;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.05s ease;
}

/* Flecha fuera de la celda, pero con misma altura */
.password-row .btn-go {
    position: absolute;
    top: 0;
    right: -70px;
    width: 65px;
    height: 80px;
    border-radius: 2px;
}

.btn-go:hover {
    background: #152332;
}

.btn-go:active {
    transform: scale(0.96);
}

/* Error */
.login-error {
    margin-top: 2px;
    font-size: 13px;
    color: var(--danger);
}

/* Teclado en pantalla GRANDE */
.osk {
    width: 100%;
    max-width: 1200px;
    background: #050608;
    border-top: 1px solid #111827;
    padding: 26px 22px 22px;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.8);
}

.osk-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.osk-key {
    min-width: 88px;
    height: 80px;
    border-radius: 4px;
    border: 1px solid var(--key-border);
    background: var(--key-bg);
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background 0.1s ease, transform 0.05s ease, box-shadow 0.1s ease;
}

.osk-key-wide {
    min-width: 90px;
}

.osk-key-enter {
    min-width: 110px;
    background: #0b2a36;
    border-color: #134e5e;
}

.osk-key-space {
    min-width: 160px;
}

.osk-key:hover {
    background: #1a202c;
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.osk-key:active {
    transform: translateY(1px);
}

/* Responsive pequeño */
@media (max-width: 600px) {
    .logo-hex {
        width: 90px;
        height: 90px;
    }

    .logo-letter {
        font-size: 46px;
    }

    .logo-name {
        font-size: 30px;
    }

    .input-wrapper,
    .password-row .input-wrapper {
        height: 44px;
        max-width: 320px;
        margin: 0 auto;
    }

    .password-row .btn-go {
        right: -52px;
        width: 40px;
        height: 44px;
    }

    .osk {
        padding: 10px 6px;
        max-width: 100%;
    }

    .osk-key {
        min-width: 44px;
        height: 44px;
        font-size: 14px;
    }

    .osk-key-enter {
        min-width: 80px;
    }

    .osk-key-space {
        min-width: 120px;
    }
}

.logo-img {
    width: 120px;
    height: 139px;
    object-fit: contain;
}
