/* Auth & Dashboard styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e3a5f 100%);
    padding: 2rem;
}
.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}
.auth-card .sub {
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}
.auth-card .form-group { margin-bottom: 1.2rem; }
.auth-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--gray-800);
}
.auth-card input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color .2s;
}
.auth-card input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.auth-card .btn { width: 100%; padding: 0.75rem; margin-top: 0.5rem; }
.auth-card .footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}
.auth-card .footer-text a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-card .alert {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.auth-card .alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-card .alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* User Dashboard */
.dash-body {
    background: #f4f6f9;
    padding-top: 70px;
    min-height: 100vh;
}
.dash-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.dash-header h1 { font-size: 1.8rem; font-weight: 700; }
.dash-header .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dash-header .user-info .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.dash-header .user-info .details { font-size: 0.9rem; }
.dash-header .user-info .details .name { font-weight: 600; }
.dash-header .user-info .details .tier { color: var(--gray-600); font-size: 0.8rem; }

.dash-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}
.dash-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--gray-200);
}

.license-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.license-item:last-child { border-bottom: none; }
.license-item .key { font-family: monospace; font-size: 0.8rem; word-break: break-all; color: var(--gray-600); }
.license-item .meta { font-size: 0.85rem; }
.license-item .actions { display: flex; gap: 0.5rem; }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-active { background: #dcfce7; color: #16a34a; }
.badge-revoked { background: #fef2f2; color: #dc2626; }
.badge-expired { background: #f3f4f6; color: #6b7280; }
.badge-personal { background: #e0f2fe; color: #0284c7; }
.badge-commercial { background: #fef3c7; color: #d97706; }

.device-list { list-style: none; }
.device-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}
.device-list li:last-child { border-bottom: none; }

.dash-footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--gray-600);
    font-size: 0.85rem;
}
