html, body {
    height: 100%;
    margin: 0;
}

/* Layout */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--background-primary);
    font-family: var(--font-primary);
    color: var(--text-primary);
    gap: 2rem;
}

/* Card */
.login-section {
    text-align: center;
    background-color: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    width: 92%;
    max-width: 420px;
    box-sizing: border-box;
    box-shadow: 0 6px 18px var(--shadow-color);
}

.logo{
    width: 25%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.title {
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-size: var(--font-size-xlarge);
    font-weight: var(--font-weight-bold);
    margin: 18px 0 12px;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    padding: 10px 12px;
    font-size: var(--font-size-base);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--background-primary);
    color: var(--text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(28,42,74,0.06);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-footer .remember input {
    margin-right: 8px;
}

.forgot {
    color: var(--primary-light);
    text-decoration: none;
}

.forgot:hover {
    text-decoration: underline;
}

.container-btn {
    display: block;
    width: 100%;
    text-decoration: none;
}

.btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: var(--font-size-base);
    cursor: pointer;
    border: none;
    box-shadow: none;
    transition: background-color 0.12s ease, transform 0.06s ease, box-shadow 0.12s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(28,42,74,0.08);
}

/* Small screens */
@media (max-width: 420px) {
    .login-section {
        padding: 20px;
    }
    .logo{
        width: 140px;
    }
}