/* G9Push - Authentication & Credentials Styles */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    min-height: 100vh;
}

.auth-left {
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.auth-brand {
    margin-bottom: 2rem;
}

.auth-brand .logo {
    font-size: 1.75rem;
}

.auth-form-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.auth-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.selected-plan {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.plan-name {
    font-weight: 700;
    color: var(--gray-900);
    text-transform: capitalize;
}

.change-plan {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.change-plan:hover {
    text-decoration: underline;
}

.plan-price {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* Right Side Panel */
.auth-right {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial {
    margin-bottom: 3rem;
}

.testimonial blockquote {
    font-size: 1.25rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.testimonial blockquote::before {
    content: '"';
    font-size: 3rem;
    line-height: 1;
    opacity: 0.3;
    display: block;
    margin-bottom: -1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-name {
    font-weight: 600;
}

.author-title {
    font-size: 0.875rem;
    opacity: 0.8;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* Credentials Panel */
.credentials-panel {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-message {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.credential-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cred-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: left;
}

.cred-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.cred-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cred-value code {
    flex: 1;
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
    word-break: break-all;
}

.cred-value code.long {
    font-size: 0.75rem;
}

.copy-btn {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.installation-code,
.service-worker-code {
    text-align: left;
    margin-bottom: 1.5rem;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--gray-800);
    color: var(--gray-300);
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 0.875rem;
}

.code-header .copy-btn {
    background: transparent;
    border: none;
    color: var(--gray-400);
    padding: 0.25rem;
}

.code-header .copy-btn:hover {
    color: var(--white);
}

.installation-code pre,
.service-worker-code pre {
    background: var(--gray-900);
    margin: 0;
    padding: 1.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow-x: auto;
}

.installation-code code,
.service-worker-code code {
    color: var(--gray-100);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.save-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius);
    padding: 1rem;
    color: #92400e;
    font-size: 0.9375rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-right {
        display: none;
    }
    
    .auth-left {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .auth-left {
        padding: 1.5rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .credentials-panel {
        padding: 1.5rem;
    }
}

/* Dashboard Styles */
.dashboard-page {
    min-height: 100vh;
    background: var(--gray-50);
}

.dashboard-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    height: calc(100vh - 65px);
    position: fixed;
    left: 0;
    top: 65px;
    padding: 1.5rem 0;
}

.sidebar-nav {
    padding: 0 1rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.dashboard-main {
    margin-left: 260px;
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-card-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-card-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-card-change.positive {
    color: var(--success);
}

.stat-card-change.negative {
    color: var(--error);
}

/* Credentials Display in Dashboard */
.credentials-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--gray-100);
}

.credentials-section h2 {
    margin-bottom: 1.5rem;
}

.credential-item {
    margin-bottom: 1.5rem;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-item label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.credential-input-group {
    display: flex;
    gap: 0.5rem;
}

.credential-input-group input {
    flex: 1;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.credential-input-group button {
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.credential-input-group button:hover {
    background: var(--primary-dark);
}

.code-snippet {
    background: var(--gray-900);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 0.5rem;
    position: relative;
}

.code-snippet pre {
    margin: 0;
    overflow-x: auto;
}

.code-snippet code {
    color: var(--gray-100);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-snippet .copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--gray-400);
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
}

.code-snippet .copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}
