@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    height: 100%;
}

body {
    margin: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, #0e1424 0%, #06080f 100%);
    color: #ffffff;
    font-family: 'Outfit', system-ui, sans-serif;
    overflow: hidden;
}

.login-container {
    width: min(90%, 400px);
}

#pin-form {
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    background: rgba(16, 21, 33, 0.85);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    text-align: center;
}

#pin-form:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 
                0 0 20px rgba(99, 102, 241, 0.1);
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0 0 2rem;
    font-weight: 300;
}

label {
    display: block;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input {
    display: block;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 1rem;
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Hide input password dots spacing logic override when empty */
input:placeholder-shown {
    letter-spacing: normal;
}

button {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

button:hover {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    cursor: wait;
    opacity: 0.6;
    transform: none;
}

#login-message {
    min-height: 1.5rem;
    margin: 1.25rem 0 0;
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 400;
}
