@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&family=Khand:wght@300;400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* VARIABLES LOCALES (independiente) */
:root {
    --bg:        #0f1117;
    --surface:   #181c27;
    --surface2:  #1f2435;
    --border:    #2a3045;
    --accent:    #4f8ef7;
    --accent2:   #a78bfa;
    --text:      #e8eaf0;
    --muted:     #6b7280;
    --radius:    12px;

    --c-healthy:   #22c55e;
    --c-extracted: #ef4444;
}

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

body {
    height: 100vh;
    background: linear-gradient(135deg, var(--bg), var(--surface));
    font-family: 'Dosis', 'Rajdhani', Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text);
}

/* Contenedor principal */
.main {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login centrado */
.login-container {
    background-color: var(--surface);
    padding: 30px;
    border-radius: var(--radius);
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    text-align: center;
    min-width: 280px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
}

/* Logo */
.logoLog {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logoLog img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

.titleLogin{
    font-weight: 500;
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background: transparent; /* 🔥 clave */
    color: var(--text);
    transition: all 0.25s ease;
    font: inherit;
}

/* efecto integrado */
.form-group {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 5px;
}

input::placeholder {
    color: var(--muted);
}

input:focus {
    border-color: transparent;
    outline: none;
    border: 1px solid var(--accent); /* 🔹 Borde grueso celeste */
}

.form-group:focus-within {
    /*border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(79, 142, 247, 0.2);*/
}

/* Botón */
.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-top: 20px;
}

.btn:disabled {
    background-color: var(--muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Respuesta */
#response {
    margin-top: 15px;
    color: var(--c-extracted);
}

/* Responsive */
@media (max-width: 500px) {
    .login-container {
        padding: 20px;
    }

    .logo {
        max-width: 100px;
    }
}