/* Tenex Command Center - Custom Styles */

:root {
    --primary-color: #0066cc;
    --secondary-color: #6c757d;
    
    /* Tenex Brand Colors */
    --tenex-dark: hsl(220, 65%, 6%);
    --tenex-darker: hsl(220, 50%, 10%);
    --tenex-slate: hsl(215, 25%, 16%);
    --tenex-blue: hsl(213, 94%, 68%);
    --tenex-blue-light: hsl(213, 94%, 78%);
    --tenex-gray: hsl(215, 14%, 71%);
    --tenex-gray-light: hsl(215, 20%, 85%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

main {
    min-height: calc(100vh - 200px);
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

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

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: #d63384;
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    padding-top: 48px;
    padding-bottom: 48px;
    background-color: var(--background);
    color: var(--foreground);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 48px;
    background-color: var(--card);
    border: 1px solid var(--border);
}

.login-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.login-logo {
    height: 20px;
    width: auto;
}

.login-logo-dark {
    display: none;
}

.login-heading {
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    color: var(--foreground);
}

.login-form {
    margin-bottom: 24px;
}

.login-button {
    width: 100%;
    padding: 16px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 200ms;
    background-color: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
    cursor: pointer;
}

.login-button:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.login-button:active {
    transform: scale(0.95);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-button svg {
    width: 24px;
    height: 24px;
}

.login-footer {
    font-size: 14px;
    text-align: center;
    color: var(--muted-foreground);
}

.login-error {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding: 16px;
    border-radius: 8px;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--destructive);
}

.login-error-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--destructive);
}

.login-error-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--destructive);
}

.theme-toggle-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 50;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--foreground);
    transition: background-color 200ms ease;
}

.theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn svg {
    width: 24px;
    height: 24px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-lg {
    width: 48px;
    height: 48px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
