:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --error: #ef4444;
    --success: #22c55e;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

.auth-container {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--text-main);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-main);
    font-size: 1rem;
    box-sizing: border-box;
    transition: outline 0.2s, border-color 0.2s;
}

input:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

button.btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

button.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

button.btn:active {
    transform: translateY(0);
}

button.btn-secondary {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    margin-top: 1rem;
}

button.btn-secondary:hover {
    background-color: var(--bg-color);
    color: var(--text-main);
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.dashboard-container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.device-item,
.user-item,
.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.device-item:last-child {
    border-bottom: none;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active {
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.badge-expired {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.plan-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.plan-card h3 {
    margin-bottom: 0.5rem;
}

.plan-card .price {
    margin: auto 0;
}

.plan-card .btn {
    margin-top: 1.5rem;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--text-main);
}

/* Split Layout */
.split-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.features-panel {
    flex: 1;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.features-panel::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.login-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--bg-color);
}

.features-content {
    max-width: 600px;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s;
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.feature-text h3 {
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-text p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Image styles removed */

@media (min-width: 768px) {
    .split-container {
        flex-direction: row;
    }

    .features-panel {
        flex: 1;
        padding: 4rem;
    }

    .login-panel {
        flex: 1;
        padding: 4rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}