﻿/* ========================================
   Albatta API Docs - Authentication Page
   ======================================== */

/* Hero Section */
.authenticate-hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

    .authenticate-hero .hero-icon {
        font-size: 8rem;
        opacity: 0.3;
        animation: pulseShield 4s ease-in-out infinite;
    }

@keyframes pulseShield {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Access Timeline */
.access-timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e4e6ef;
    margin: 1.5rem 0;
}

html[dir="rtl"] .access-timeline {
    padding-left: 0;
    padding-right: 2rem;
    border-left: none;
    border-right: 2px solid #e4e6ef;
}

.access-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

    .access-timeline-item::before {
        content: '';
        position: absolute;
        left: -2.45rem;
        top: 0.25rem;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--api-primary);
        border: 3px solid white;
        box-shadow: 0 0 0 2px var(--api-primary);
    }

html[dir="rtl"] .access-timeline-item::before {
    left: auto;
    right: -2.45rem;
}

.access-timeline-item:last-child {
    padding-bottom: 0;
}

/* Auth Flow Steps */
.auth-flow-step {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--api-light);
    border-radius: 12px;
    border: 1px solid #e4e6ef;
}

    .auth-flow-step .step-header {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e4e6ef;
    }

        .auth-flow-step .step-header .step-number {
            margin-right: 1rem;
        }

html[dir="rtl"] .auth-flow-step .step-header .step-number {
    margin-right: 0;
    margin-left: 1rem;
}

/* Postman Setup Grid */
.postman-setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.postman-setup-item {
    background: white;
    border: 1px solid #e4e6ef;
    border-radius: 12px;
    padding: 1.5rem;
}

    .postman-setup-item .step-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        background: var(--api-primary);
        color: white;
        border-radius: 50%;
        font-size: 0.85rem;
        font-weight: 600;
        margin-right: 0.5rem;
    }

html[dir="rtl"] .postman-setup-item .step-badge {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Code Examples Tabs */
.code-examples .nav-tabs {
    border-bottom: 2px solid #e4e6ef;
    margin-bottom: 1.5rem;
}

.code-examples .nav-link {
    font-weight: 500;
    color: #7e8299;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px 8px 0 0;
}

    .code-examples .nav-link.active {
        color: var(--api-primary);
        background: white;
        border-bottom: 2px solid var(--api-primary);
        margin-bottom: -2px;
    }

.code-examples .tab-content {
    background: white;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e4e6ef;
    border-top: none;
    padding: 1.5rem;
}

/* Security Notes */
.security-notes {
    background: linear-gradient(135deg, rgba(255, 168, 0, 0.1) 0%, rgba(246, 78, 96, 0.1) 100%);
    border: 1px solid rgba(255, 168, 0, 0.3);
}

    .security-notes ul {
        padding-left: 1.25rem;
        margin: 0;
    }

html[dir="rtl"] .security-notes ul {
    padding-left: 0;
    padding-right: 1.25rem;
}

.security-notes li {
    margin-bottom: 0.5rem;
}

/* Support Box */
.support-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

    .support-box a {
        color: var(--api-primary);
        text-decoration: none;
        font-weight: 500;
    }

        .support-box a:hover {
            text-decoration: underline;
        }

/* Responsive */
@media (max-width: 767px) {
    .auth-flow-step .step-header {
        flex-direction: column;
        align-items: flex-start;
    }

        .auth-flow-step .step-header .step-number {
            margin-right: 0;
            margin-bottom: 0.75rem;
        }

    .postman-setup-grid {
        grid-template-columns: 1fr;
    }

    .code-examples .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
