/* Shared layout primitives — extracted from inline <style> blocks */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-header h1 {
    margin-bottom: 0;
    font-size: 22px;
    text-align: left;
}

.page-header .logo-container {
    margin: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(88, 101, 242, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-color);
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.nav-link:hover {
    background-color: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.3);
    color: var(--primary-color);
}

.logout-form {
    display: inline;
    margin: 0;
}

.logout-btn {
    color: var(--error-color);
}

.logout-btn:hover {
    background-color: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.3);
    color: var(--error-color);
}

/* Login screen */
.login-logo {
    text-align: center;
    margin-bottom: 16px;
    width: auto;
    height: auto;
    background: none;
}

.login-logo i {
    font-size: 60px;
    color: var(--primary-color);
    background: rgba(88, 101, 242, 0.1);
    padding: 20px;
    border-radius: 50%;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 22px;
}

.auth-form .input-icon-wrapper i {
    color: var(--primary-color);
    font-size: 20px;
}

.auth-form .input-icon-wrapper input {
    padding-left: 45px;
}

.error-banner {
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.45);
    color: #ffd5d0;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    .top-nav {
        justify-content: flex-end;
    }
}
