/**
 * Court Booking Manager - Demo Login Page Styles
 */

:root {
    --cbm-primary: #10b981;
    --cbm-primary-dark: #059669;
    --cbm-accent: #10b981;
    --cbm-accent-dark: #059669;
    --cbm-success: #10b981;
    --cbm-gray-900: #111827;
    --cbm-gray-700: #374151;
    --cbm-gray-500: #6b7280;
    --cbm-gray-400: #9ca3af;
    --cbm-gray-300: #d1d5db;
    --cbm-gray-200: #e5e7eb;
    --cbm-gray-100: #f3f4f6;
    --cbm-gray-50: #f9fafb;
    --cbm-white: #ffffff;
    --cbm-radius: 12px;
    --cbm-radius-lg: 20px;
    --cbm-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --cbm-shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.15);
    --cbm-transition: all 0.2s ease;
}

.cbm-demo-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cbm-demo-page *,
.cbm-demo-page *::before,
.cbm-demo-page *::after {
    box-sizing: border-box;
}

/* Card */
.cbm-demo-card {
    width: 100%;
    max-width: 440px;
    background: var(--cbm-white);
    border-radius: var(--cbm-radius-lg);
    box-shadow: var(--cbm-shadow-lg);
    padding: 48px 40px;
    text-align: center;
}

/* Icon */
.cbm-demo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 50%;
    margin-bottom: 24px;
    color: var(--cbm-primary);
}

/* Title */
.cbm-demo-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cbm-gray-900);
    margin: 0 0 12px;
}

/* Description */
.cbm-demo-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--cbm-gray-500);
    margin: 0 0 28px;
}

/* Features List */
.cbm-demo-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
    text-align: left;
}

.cbm-demo-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--cbm-gray-50);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cbm-gray-700);
}

.cbm-demo-feature svg {
    flex-shrink: 0;
    color: var(--cbm-success);
}

/* Login Button */
.cbm-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 56px;
    padding: 0 28px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: none;
    border-radius: var(--cbm-radius);
    cursor: pointer;
    text-decoration: none;
    transition: var(--cbm-transition);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.cbm-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.5);
    color: #fff;
}

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

.cbm-demo-btn--dashboard {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.cbm-demo-btn--dashboard:hover {
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.5);
}

.cbm-demo-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Spinner */
.cbm-spinner {
    animation: cbm-spin 1s linear infinite;
}

@keyframes cbm-spin {
    to { transform: rotate(360deg); }
}

/* Logged in message */
.cbm-demo-logged-in {
    margin-top: 16px;
    font-size: 14px;
    color: var(--cbm-success);
    font-weight: 500;
}

/* Notice */
.cbm-demo-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 16px;
    background: #fef3c7;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
    text-align: left;
}

.cbm-demo-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #d97706;
}

/* Footer */
.cbm-demo-footer {
    margin-top: 24px;
}

.cbm-demo-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cbm-gray-500);
    text-decoration: none;
    transition: var(--cbm-transition);
}

.cbm-demo-back:hover {
    color: var(--cbm-primary);
}

/* Responsive */
@media (max-width: 540px) {
    .cbm-demo-page {
        padding: 24px 16px;
        min-height: auto;
    }

    .cbm-demo-card {
        padding: 36px 24px;
        border-radius: var(--cbm-radius);
    }

    .cbm-demo-icon {
        width: 80px;
        height: 80px;
    }

    .cbm-demo-icon svg {
        width: 48px;
        height: 48px;
    }

    .cbm-demo-title {
        font-size: 1.5rem;
    }

    .cbm-demo-features {
        grid-template-columns: 1fr;
    }

    .cbm-demo-btn {
        height: 52px;
        font-size: 16px;
    }
}
