/*FONTS*/
@font-face {
    font-family: 'Comfortaa';
    src: url('./assets/fonts/Comfortaa_Thin.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comfortaa';
    src: url('./assets/fonts/Comfortaa_Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comfortaa';
    src: url('./assets/fonts/Comfortaa_Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* RESET BASICO */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Comfortaa',
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
}

body {
    background: #f5f5f5;
    color: #111;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LOGIN CONTAINER */
.login-container {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border: 2px solid #e4e4e4;
    border-radius: 16px;
    padding: 2rem 1.5rem;
}

/* TITLE */
.app-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111;
}

/* FORM */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.login-form label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
}

.login-form input {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.6rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 2px solid #e4e4e4;
    outline: none;
}

.login-form input:focus {
    border-color: #1f8f3a;
}

/* BUTTON */
.login-form button {
    margin-top: 0.8rem;
    padding: 0.7rem;
    font-size: 1rem;
    font-weight: 700;
    background: #1f8f3a;
    color: #fff;
    border: none;
    border-radius: 32px;
    cursor: pointer;
}

.login-form button:active {
    background: #0b5d24;
}

/* ERROR */
.login-error {
    margin-top: 1rem;
    padding: 0.8rem;
    background: #f8d7da;
    color: #721c24;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.hidden {
    display: none;
}