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

:root {
color-scheme: dark;
--primary: #0a9a8a;
--primary-hover: #0fb3a1;

--background: #0a0e0d;
--card: #131a19;

--text: #e8eeed;
--muted: #86918f;

--border: #263130;
}

body {
font-family: "Inter", sans-serif;
background: var(--background);
color: var(--text);
}

.login-page {
min-height: 100vh;

display: flex;
flex-direction: column;

align-items: center;
justify-content: center;

padding: 20px;

}

/* CARD */

.login-card {
width: 100%;
max-width: 420px;

padding: 38px;

background: var(--card);

border: 1px solid #26312f;
border-radius: 18px;

box-shadow:
    0 20px 50px rgba(20, 25, 40, 0.08);

}

/* BRAND */

.brand {
display: flex;
align-items: center;

gap: 12px;

margin-bottom: 42px;

}

.brand-icon {
width: 44px;
height: 44px;

display: flex;
align-items: center;
justify-content: center;

border-radius: 12px;

background: var(--primary);
color: #ffffff;

font-size: 19px;
font-weight: 800;

box-shadow:
    0 8px 20px rgba(1, 123, 111, 0.25);

}

.brand-name {
display: flex;
flex-direction: column;

gap: 3px;

}

.brand-name strong {
font-size: 16px;
font-weight: 800;
}

.brand-name span {
color: var(--muted);

font-size: 11px;

}

/* HEADER */

.login-header {
margin-bottom: 28px;
}

.login-header h1 {
font-size: 28px;
font-weight: 800;

letter-spacing: -0.8px;

margin-bottom: 9px;

}

.login-header p {
color: var(--muted);

font-size: 14px;
line-height: 1.6;

}

/* FORM */

.login-form {
display: flex;
flex-direction: column;

gap: 19px;

}

.input-group {
display: flex;
flex-direction: column;

gap: 8px;

}

.input-group label {
font-size: 13px;
font-weight: 600;
}

.input-group input {
width: 100%;
height: 48px;

padding: 0 14px;

border: 1px solid var(--border);
border-radius: 10px;

outline: none;

background: #121918;

font-family: inherit;
font-size: 14px;

transition: 0.2s;

}

.input-group input::placeholder {
color: #a5aab3;
}

.input-group input:hover {
border-color: #26312f;
}

.input-group input:focus {
border-color: var(--primary);

box-shadow:
    0 0 0 3px rgba(1, 123, 111, 0.14);

}

/* BUTTON */

.login-form button {
height: 50px;

margin-top: 5px;

border: none;
border-radius: 10px;

background: var(--primary);
color: #ffffff;

display: flex;
align-items: center;
justify-content: center;

gap: 10px;

font-family: inherit;
font-size: 14px;
font-weight: 700;

cursor: pointer;

transition: 0.2s;

}

.login-form button span {
font-size: 18px;
}

.login-form button:hover {
background: var(--primary-hover);

transform: translateY(-1px);

box-shadow:
    0 8px 20px rgba(1, 123, 111, 0.25);

}

.login-form button:active {
transform: translateY(0);
}

/* FOOTER */

.login-footer {
display: flex;
flex-direction: column;

align-items: center;

gap: 4px;

margin-top: 25px;
padding-top: 22px;

border-top: 1px solid #26312f;

color: var(--muted);

font-size: 12px;

}

.login-footer strong {
color: #c5d0ce;

font-weight: 600;

}

/* COPYRIGHT */

.copyright {
margin-top: 20px;

color: #999faa;

font-size: 11px;

}

/* MOBILE */

@media (max-width: 480px) {

.login-page {
    padding: 15px;
}

.login-card {
    padding: 28px 22px;

    border-radius: 15px;
}

.login-header h1 {
    font-size: 25px;
}

}

/* ERRORI E LINK (login / registrazione) */

.form-error {
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid #26312f;
    border-radius: 8px;
    background: #411616;
    color: #ea7171;
    font-size: 13px;
    font-weight: 500;
}

.login-footer a {
    color: #c5d0ce;
}

.login-footer a:hover strong {
    color: #5dfeee;
}


/* YoungPulse: logo nella schermata di accesso */
.brand {
    justify-content: center;
    margin-bottom: 26px;
    padding: 6px;
    border-radius: 14px;
    background: #000;
}

.brand-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}

.copyright {
    color: #8a8f98;
}
