/* MechIndex - Main Styles */
/* Color Palette from PRD */
:root {
    --primary: #16578d;
    --secondary: #16578d;
    --highlight: #82c4ff;
    --critical: #e7212e;
    --background: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #4f4f4f;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-md: rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--background);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary:hover {
    background-color: #2590be;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-md);
    width: 100%;
    max-width: 400px;
}

.auth-logo h1 {
    color: var(--secondary);
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-img {
    max-width: 180px;
    height: auto;
}

.auth-card h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--background);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(51, 160, 209, 0.15);
}

.error-message {
    color: var(--critical);
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.auth-form .btn {
    margin-top: 0.5rem;
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}