@font-face {
    font-family: 'Quicksand';
    src: url('/static/fonts/Quicksand-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('/static/fonts/Quicksand-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Quicksand';
    src: url('/static/fonts/Quicksand-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff3e0 100%);
    color: #4a6741;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

canvas {
    display: none;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.title {
    text-align: center;
    margin-bottom: 2rem;
}

.title h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #6a9c5f;
    letter-spacing: 1px;
}

.title .subtitle {
    font-size: 0.9rem;
    color: #c47e3e;
    margin-top: 0.5rem;
    font-weight: 500;
}

.card {
    background: #ffffff;
    border: none;
    border-radius: 28px;
    box-shadow: 0 8px 30px rgba(106, 156, 95, 0.18);
    padding: 2.5rem;
    position: relative;
}

.card::before {
    content: 'Connexion';
    display: block;
    font-size: 1rem;
    color: #6a9c5f;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

label {
    display: block;
    font-size: 0.85rem;
    color: #8a9e84;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: #f5f9f3;
    border: 2px solid #d8e8d3;
    border-radius: 16px;
    color: #4a6741;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 1.3rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: #c47e3e;
}

input::placeholder { color: #b0c2a8; }

.btn {
    width: 100%;
    padding: 0.95rem;
    background: #e8943f;
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(232, 148, 63, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 148, 63, 0.45);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.coming-soon {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #b0c2a8;
}

.lives {
    display: none;
}

.card-corner {
    display: none;
}

#error-msg {
    display: none;
    font-size: 0.85rem;
    color: #d9534f;
    margin-bottom: 1rem;
    text-align: center;
}

#error-msg.visible {
    display: block;
}

#success-msg {
    display: none;
    font-size: 0.85rem;
    color: #6a9c5f;
    margin-bottom: 1rem;
    text-align: center;
}

#success-msg.visible {
    display: block;
}
