/* Shared typography blocks, forms, buttons, alerts, and auth controls. */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content {
    flex: 1;
    min-width: 250px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--brand-ink);
    background: linear-gradient(120deg, var(--brand-ink) 0%, var(--brand-cool) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--ink-muted);
    margin: 0;
}

.form-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--ink-strong);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0d7d6;
    border-radius: 8px;
    background: #fff;
    color: var(--ink-strong);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-cool);
    box-shadow: 0 0 0 3px rgba(31, 122, 118, 0.14);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.ea-btn-primary,
.ea-btn-secondary {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ea-btn-primary {
    background: linear-gradient(135deg, #1f7a76 0%, #2a948f 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(31, 122, 118, 0.3);
}

.ea-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 122, 118, 0.35);
}

.ea-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.ea-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.ea-btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
}

.ea-alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.ea-alert-danger,
.ea-alert-error {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.ea-alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.ea-btn-save,
.ea-btn-cancel,
.ea-btn-edit,
.ea-btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    color: #fff;
}

.ea-btn-edit {
    background-color: #f39c12;
}

.ea-btn-edit:hover {
    background-color: #e67e22;
    transform: translateY(-1px);
}

.ea-btn-delete {
    background-color: #e74c3c;
}

.ea-btn-delete:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

.ea-btn-save {
    background-color: #27ae60;
}

.ea-btn-save:hover {
    background-color: #229954;
    transform: translateY(-1px);
}

.ea-btn-cancel {
    background-color: #95a5a6;
}

.ea-btn-cancel:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
}

.auth-greeting {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: var(--ink-muted);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(31, 122, 118, 0.08);
    border: 1px solid rgba(31, 122, 118, 0.18);
    line-height: 1.5;
}

.auth-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(31, 122, 118, 0.3);
    background: #fff;
    color: var(--brand-cool);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-btn:hover {
    background: rgba(31, 122, 118, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
}

.auth-btn-github {
    border-color: rgba(18, 63, 58, 0.25);
}

.auth-btn-google {
    border-color: rgba(66, 133, 244, 0.25);
}

.auth-btn-microsoft {
    border-color: rgba(0, 90, 158, 0.25);
}

@media (max-width: 992px) {
    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
        margin: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .ea-btn-primary,
    .ea-btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding-bottom: 1rem;
    }

    .page-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 640px) {
    .auth-menu {
        width: 100%;
        justify-content: center;
    }

    .auth-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .auth-btn svg {
        width: 16px;
        height: 16px;
    }
}

