/* Forge Authentication - Dark Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #e0e0e0;
}

.login-container {
    background: #2d2d3a;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 8px;
}

.login-header p {
    color: #b0b0b0;
    font-size: 14px;
}

.error-message {
    background: #4a1f1f;
    border: 1px solid #7a3333;
    color: #ff6b6b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 14px;
    background: #1a1a24;
    color: #ffffff;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

/* Admin Dashboard Styles */
.admin-container {
    background: #2d2d3a;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #444;
}

.admin-header h1 {
    color: #ffffff;
    font-size: 24px;
}

.btn-logout {
    padding: 8px 16px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
}

.stat-card h3 {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: bold;
}

.section {
    margin-bottom: 30px;
}

.section h2,
.section h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 15px;
}

#add-user-form {
    background: #1a1a24;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

#add-user-error {
    color: #ff6b6b;
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #1a1a24;
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: #3a3a4a;
    padding: 12px;
    text-align: left;
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 600;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #444;
    font-size: 14px;
    color: #e0e0e0;
}

table tr:hover {
    background: #2d2d3a;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-admin {
    background: #667eea;
    color: white;
}

.badge-user {
    background: #555;
    color: #e0e0e0;
}

.badge-enabled {
    background: #4caf50;
    color: white;
}

.badge-disabled {
    background: #f44336;
    color: white;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #da190b;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
}
