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

.login-body {
    font-family: 'Inter', sans-serif;
    background: var(--muted);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - 160px);
}

.login-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    width: 160px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.login-card label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.login-card input[type="text"],
.login-card input[type="password"],
.login-card input[type="email"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.login-card a {
    color: var(--brand);
    text-decoration: none;
}

.login-card a:hover {
    text-decoration: underline;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

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

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

.btn-secondary {
    background: var(--orange);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--orange-2);
}

.alert {
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error {
    background: #ffe5e5;
    border: 1px solid #f87171;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid var(--success);
    color: var(--success);
}

.hidden {
    display: none;
}

#fpMessage {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.btn-loading {
    position: relative;
    opacity: 0.8;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    animation: btn-spin 1s linear infinite;
}

@keyframes btn-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}
