/* CHANGED: System & Auth Pages Stylesheet */

/* Global Styles */
:root {
    --primary: #2463eb;
    --background-light: #f6f6f8;
    --background-dark: #111621;
    --surface: #ffffff;
    --sidebar-bg: #F8FAFC;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --error: #e53e3e;
    --success: #38a169;
    --warning: #d69e2e;
}

html.dark {
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --border-color: #2d3748;
}

/* Typography */
body {
    color: var(--text-primary);
    background-color: var(--background-light);
}

html.dark body {
    background-color: var(--background-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
}

/* Forms */
input, textarea, select {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(36, 99, 235, 0.1);
}

input.error, textarea.error, select.error {
    border-color: var(--error);
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Buttons */
.btn, button, input[type="button"], input[type="submit"] {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.875rem;
}

.btn-primary, button.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover, button.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary, button.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover, button.btn-secondary:hover {
    background-color: var(--background-light);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Alert/Messages */
.alert, .message {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error, .message.error {
    background-color: #fed7d7;
    color: var(--error);
    border: 1px solid #fc8181;
}

.alert-success, .message.success {
    background-color: #c6f6d5;
    color: var(--success);
    border: 1px solid #9ae6b4;
}

.alert-info, .message.info {
    background-color: #bee3f8;
    color: #2c5282;
    border: 1px solid #90cdf4;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.15s;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Cards */
.card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

html.dark .card {
    background-color: #2d3748;
    border-color: #4a5568;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-secondary {
    color: var(--text-secondary);
}
