/* =============================================
   BugTracker - Main Stylesheet
   Font: Space Grotesk
   Colors: #333333, #48E5C2, #FCFAF9
   ============================================= */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark: #333333;
    --color-primary: #48E5C2;
    --color-light: #FCFAF9;
    --color-danger: #e74c3c;
    --color-warning: #f39c12;
    --color-success: #27ae60;
    --color-gray: #6b7280;
    --color-gray-light: #e5e7eb;
    --font-family: 'Space Grotesk', sans-serif;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.content-wrapper {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(51, 51, 51, 0.1);
    overflow: hidden;
}

.left-section {
    flex: 1;
    padding: 48px;
}

.right-section {
    flex: 1;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 32px;
    text-decoration: none;
}

.logo span {
    color: var(--color-dark);
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--color-gray);
    margin-bottom: 32px;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--color-gray-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(72, 229, 194, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--color-primary);
    color: var(--color-dark);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 229, 194, 0.4);
    opacity: 1;
}

.btn-full {
    width: 100%;
}

/* Auth Links */
.auth-link {
    text-align: center;
    margin-top: 24px;
    color: var(--color-gray);
}

.auth-link a {
    color: var(--color-dark);
    font-weight: 600;
}

/* Messages */
.error-message {
    background: #fef2f2;
    color: var(--color-danger);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-bottom: 16px;
}

.success-message {
    background: #f0fdf4;
    color: var(--color-success);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    margin-bottom: 16px;
}

/* Illustration */
.illustration {
    width: 100%;
    max-width: 300px;
}

.bug-diagram {
    width: 100%;
    height: auto;
}

/* Navbar */
.navbar {
    background: #fff;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(51, 51, 51, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    margin-bottom: 0;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--color-gray);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-dark);
    opacity: 1;
}

.user-name {
    font-weight: 500;
    color: var(--color-dark);
}

.btn-logout {
    padding: 8px 16px;
    background: var(--color-gray-light);
    color: var(--color-dark);
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #d1d5db;
    opacity: 1;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    min-height: calc(100vh - 140px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--color-gray);
    font-size: 0.875rem;
    border-top: 1px solid var(--color-gray-light);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-low {
    background: #dbeafe;
    color: #1e40af;
}

.priority-standard {
    background: #fef3c7;
    color: #92400e;
}

.priority-high {
    background: #fee2e2;
    color: #991b1b;
}

.status-open {
    background: #fee2e2;
    color: #991b1b;
}

.status-in-progress {
    background: #fef3c7;
    color: #92400e;
}

.status-closed {
    background: #d1fae5;
    color: #065f46;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .right-section {
        display: none;
    }
    
    .left-section {
        padding: 32px 24px;
    }
    
    .navbar {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .nav-left,
    .nav-right {
        gap: 12px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-right {
        width: 100%;
        justify-content: space-between;
    }
}
