/* ============================================================
   Dynamic Auth Buttons — Stylesheet
   Plugin: dynamic-auth-buttons | Version: 1.0.0
   ============================================================ */

.dab-auth-buttons-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* ── Base button ─────────────────────────────────────────── */
.dab-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    text-align: center;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dab-auth-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(66, 198, 243, 0.3);
}

.dab-auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Ripple effect */
.dab-auth-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.dab-auth-btn:active::before {
    width: 300px;
    height: 300px;
}

.dab-auth-btn span {
    position: relative;
    z-index: 1;
}

/* ── Icon ────────────────────────────────────────────────── */
.dab-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.dab-auth-btn:hover .dab-btn-icon {
    transform: scale(1.1);
}

/* ── Register button ─────────────────────────────────────── */
.dab-register-btn {
    background: linear-gradient(135deg, #42C6F3 0%, #00ADFF 100%);
}

.dab-register-btn:hover {
    background: linear-gradient(135deg, #00ADFF 0%, #42C6F3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(66, 198, 243, 0.4);
    color: #ffffff !important;
}

/* ── Login button ────────────────────────────────────────── */
.dab-login-btn {
    background: linear-gradient(135deg, #00ADFF 0%, #42C6F3 100%);
}

.dab-login-btn:hover {
    background: linear-gradient(135deg, #42C6F3 0%, #00ADFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 173, 255, 0.4);
    color: #ffffff !important;
}

/* ── Dashboard button ────────────────────────────────────── */
.dab-dashboard-btn {
    background: linear-gradient(135deg, #00ADFF 0%, #42C6F3 100%);
}

.dab-dashboard-btn:hover {
    background: linear-gradient(135deg, #42C6F3 0%, #00ADFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 173, 255, 0.4);
    color: #ffffff !important;
}

/* ── Logout button ───────────────────────────────────────── */
.dab-logout-btn {
    background: linear-gradient(135deg, #42C6F3 0%, #00ADFF 100%);
}

.dab-logout-btn:hover {
    background: linear-gradient(135deg, #00ADFF 0%, #42C6F3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(66, 198, 243, 0.4);
    color: #ffffff !important;
}

/* ── Responsive — Tablet (≤ 768px) ──────────────────────── */
@media (max-width: 768px) {
    .dab-auth-buttons-container {
        gap: 8px;
        padding: 8px;
    }

    .dab-auth-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 70px;
        max-width: 110px;
        flex: 1;
    }

    .dab-btn-icon {
        width: 14px;
        height: 14px;
    }
}

/* ── Responsive — Mobile (≤ 480px) ──────────────────────── */
@media (max-width: 480px) {
    .dab-auth-buttons-container {
        gap: 6px;
        width: 100%;
        padding: 5px;
    }

    .dab-auth-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 65px;
        max-width: 100px;
        flex: 1;
        white-space: nowrap;
    }

    .dab-btn-icon {
        width: 12px;
        height: 12px;
    }
}

/* ── Accessibility — High Contrast ──────────────────────── */
@media (prefers-contrast: high) {
    .dab-auth-btn {
        border: 2px solid #ffffff;
    }
}

/* ── Accessibility — Reduced Motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .dab-auth-btn {
        transition: none;
    }

    .dab-auth-btn:hover {
        transform: none;
    }

    .dab-auth-btn::before {
        display: none;
    }

    .dab-btn-icon {
        transition: none;
    }
}
